Fix preset search result sorting (re: #8242)

This commit is contained in:
Quincy Morgan
2020-12-21 11:26:34 -05:00
parent 2591a13f9c
commit 6cd81df1a2

View File

@@ -65,7 +65,7 @@ export function presetCollection(collection) {
}
function sortPresets(nameProp) {
function sortNames(a, b) {
return function sortNames(a, b) {
let aCompare = a[nameProp]();
let bCompare = b[nameProp]();
@@ -83,7 +83,7 @@ export function presetCollection(collection) {
// priority for shorter preset names
return aCompare.length - bCompare.length;
}
};
}
let pool = _this.collection;