tab quick search order by length

This commit is contained in:
Yuri Kuznetsov
2025-03-17 17:42:33 +02:00
parent 4a1cb6a9d5
commit a445c4d2a9
@@ -186,6 +186,12 @@ class GlobalSearchView extends SiteNavbarItemView {
return 1;
}
const lengthDiff = a.lowerLabel.length - b.lowerLabel.length;
if (lengthDiff !== 0) {
return lengthDiff;
}
return a.lowerLabel.localeCompare(b.lowerLabel);
})
.map(it => ({