Fix message and conf area sorting for 'sort' > 9 (again)
This commit is contained in:
parent
07ed70a5d0
commit
df56391338
|
@ -54,7 +54,7 @@ function sortAreasOrConfs(areasOrConfs, type) {
|
||||||
entryB = b[type];
|
entryB = b[type];
|
||||||
|
|
||||||
if(_.isNumber(entryA.sort) && _.isNumber(entryB.sort)) {
|
if(_.isNumber(entryA.sort) && _.isNumber(entryB.sort)) {
|
||||||
return entryA - entryB;
|
return entryA.sort - entryB.sort;
|
||||||
} else {
|
} else {
|
||||||
const keyA = entryA.sort ? entryA.sort.toString() : entryA.name;
|
const keyA = entryA.sort ? entryA.sort.toString() : entryA.name;
|
||||||
const keyB = entryB.sort ? entryB.sort.toString() : entryB.name;
|
const keyB = entryB.sort ? entryB.sort.toString() : entryB.name;
|
||||||
|
|
Loading…
Reference in New Issue