From 8757804140e9ded035a59e645d513bc256897af1 Mon Sep 17 00:00:00 2001 From: ZXY101 Date: Tue, 30 Jan 2024 10:29:39 +0200 Subject: [PATCH] Another attempt to fix import order --- src/lib/upload/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/upload/index.ts b/src/lib/upload/index.ts index 9338510..68a4607 100644 --- a/src/lib/upload/index.ts +++ b/src/lib/upload/index.ts @@ -102,7 +102,7 @@ export async function processFiles(_files: File[]) { const mangas: string[] = []; const files = _files.sort((a, b) => { - return a.name.localeCompare(b.name, undefined, { + return decodeURI(a.name).localeCompare(decodeURI(b.name), undefined, { numeric: true, sensitivity: 'base' });