Skip to content

Commit 51e6097

Browse files
committed
sort sidebar
1 parent 06ab657 commit 51e6097

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

web/src/pages/DeclarationsSidebar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ function groupByModule(declarations: Declaration[]): ModuleGroup[] {
3030
}
3131
items.push(d);
3232
}
33-
return Array.from(map, ([module, items]) => ({ module, items }));
33+
return Array.from(map, ([module, items]) => ({ module, items })).sort((a, b) =>
34+
a.module.localeCompare(b.module),
35+
);
3436
}
3537

3638
const HEADER_HEIGHT = 28;

0 commit comments

Comments
 (0)