1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

fix(web): sort folders (#12038)

chore(web): sort folders
This commit is contained in:
Alex 2024-08-25 16:53:14 -05:00 committed by GitHub
parent 868aedd212
commit b653a20d15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;