Skip to content

Commit

Permalink
fix(web): sort folders (#12038)
Browse files Browse the repository at this point in the history
chore(web): sort folders
  • Loading branch information
alextran1502 authored Aug 25, 2024
1 parent 868aedd commit b653a20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/lib/utils/tree-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export const normalizeTreePath = (path: string) => path.replace(/^\//, '').repla

export function buildTree(paths: string[]) {
const root: RecursiveObject = {};

paths.sort();

for (const path of paths) {
const parts = path.split('/');
let current = root;
Expand Down

0 comments on commit b653a20

Please sign in to comment.