Fix bug with branch sorting in dropdown menu

3c24cd55f6ec09ed472d756e97c933a278ad73cc

Tucker McKnight <tmcknight@instructure.com> | Thu Feb 05 2026

Fix bug with branch sorting in dropdown menu

Date comparison was happening with the stringified dates (e.g.
"Mon Jan. 1, 2026") instead of a dictionary-sortable format,
like ISO8601.
js_templates/common/branchesListItems.ts:27
Before
27
          updated ${branch.date}
After
27
          updated ${new Date(branch.date).toDateString()}
js_templates/common/htmlPage.ts:20
Before
20
        date: repo.commits.get(branch.head).date.toDateString(),
After
20
        date: repo.commits.get(branch.head).date.toISOString(),
wiki/index.md:51
Before
51
- [ ] Sorting branch list dropdown by last commit isn't sorting correctly
After
51
wiki/index.md:59
Before
59
After
59
- [x] Sorting branch list dropdown by last commit isn't sorting correctly