chore: remove duplicate sort
This commit is contained in:
parent
6dc36cb67f
commit
fc63652a6e
1 changed files with 0 additions and 3 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue