chore: remove duplicate sort

feat/type-attributes
Tomáš Mládek 2023-04-23 16:42:43 +02:00
parent 6dc36cb67f
commit fc63652a6e
1 changed files with 0 additions and 3 deletions

View File

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