We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e01df1d + 77860aa commit 181e3eaCopy full SHA for 181e3ea
src/components/LeftSidebar.tsx
@@ -51,7 +51,11 @@ function buildRepoNodes(
51
list.push(s)
52
map.set(key, list)
53
}
54
- return Array.from(map.entries()).map(([key, repoSessions]) => ({
+ return Array.from(map.entries()).sort((a, b) => {
55
+ const nameA = a[0].replace(/\/+$/, '').split('/').pop() ?? a[0]
56
+ const nameB = b[0].replace(/\/+$/, '').split('/').pop() ?? b[0]
57
+ return nameA.localeCompare(nameB)
58
+ }).map(([key, repoSessions]) => ({
59
workingDir: key,
60
displayName: repoDisplayName(key),
61
sessions: repoSessions,
0 commit comments