Fix message and conf area sorting for 'sort' > 9 (again)

This commit is contained in:
Bryan Ashby 2016-07-19 08:45:18 -06:00
parent 07ed70a5d0
commit df56391338
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ function sortAreasOrConfs(areasOrConfs, type) {
entryB = b[type];
if(_.isNumber(entryA.sort) && _.isNumber(entryB.sort)) {
return entryA - entryB;
return entryA.sort - entryB.sort;
} else {
const keyA = entryA.sort ? entryA.sort.toString() : entryA.name;
const keyB = entryB.sort ? entryB.sort.toString() : entryB.name;