From dd881da036233a3f1567304db413e82f6cbb6f3c Mon Sep 17 00:00:00 2001 From: ZXY101 Date: Tue, 30 Jan 2024 10:27:34 +0200 Subject: [PATCH] Another attempt to fix import order --- src/lib/upload/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/upload/index.ts b/src/lib/upload/index.ts index 9338510..8f21324 100644 --- a/src/lib/upload/index.ts +++ b/src/lib/upload/index.ts @@ -101,8 +101,9 @@ export async function processFiles(_files: File[]) { const volumes: Record = {}; 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' });