improve sorting
parent
7a1d0a5024
commit
3f2f22048f
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue