chore: remove duplicate sort

This commit is contained in:
Tomáš Mládek 2023-04-23 16:42:43 +02:00
parent 6dc36cb67f
commit fc63652a6e

View file

@ -52,9 +52,6 @@ export function sortByAttribute(entries: UpEntry[]): void {
} }
export function sortByEntity(entries: UpEntry[], sortKeys: SortKeys): void { export function sortByEntity(entries: UpEntry[], sortKeys: SortKeys): void {
entries.sort((aEntry, bEntry) => {
return aEntry.attribute.localeCompare(bEntry.attribute);
});
entries.sort((aEntry, bEntry) => { entries.sort((aEntry, bEntry) => {
if (!sortKeys[aEntry.entity]?.length || !sortKeys[bEntry.entity]?.length) { if (!sortKeys[aEntry.entity]?.length || !sortKeys[bEntry.entity]?.length) {
if ( if (