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' });