improve sorting

feat/vaults
Tomáš Mládek 2021-12-19 22:43:22 +01:00
parent 7a1d0a5024
commit 3f2f22048f
1 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,11 @@
return String(aEntry.value.c).localeCompare(String(bEntry.value.c));
}
} else {
return sortKeys[aEntry.value.c].localeCompare(sortKeys[bEntry.value.c]);
return sortKeys[aEntry.value.c].localeCompare(
sortKeys[bEntry.value.c],
undefined,
{ numeric: true, sensitivity: "base" }
);
}
})
.sort((aEntry, bEntry) => {