Another attempt to fix order issues
This commit is contained in:
@@ -107,16 +107,11 @@ export async function processFiles(_files: File[]) {
|
|||||||
const mangas: string[] = [];
|
const mangas: string[] = [];
|
||||||
|
|
||||||
const files = _files.sort((a, b) => {
|
const files = _files.sort((a, b) => {
|
||||||
if (a.name < b.name) {
|
return a.name.localeCompare(b.name, undefined, {
|
||||||
return -1;
|
numeric: true,
|
||||||
}
|
sensitivity: 'base'
|
||||||
|
|
||||||
if (a.name > b.name) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const { ext, filename, path } = getDetails(file);
|
const { ext, filename, path } = getDetails(file);
|
||||||
|
|||||||
Reference in New Issue
Block a user