1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-06-07 01:36:37 +02:00

Force sort to ignore case.

This commit is contained in:
Robbie Antenesse 2015-11-10 15:49:21 -07:00
parent 317c52d390
commit 94b43b99d6

View file

@ -439,7 +439,7 @@ function dynamicSort(property) {
property = property.substr(1); property = property.substr(1);
} }
return function (a, b) { return function (a, b) {
var result = (a[property] < b[property]) ? -1 : (a[property] > b[property]) ? 1 : 0; var result = (a[property].toLowerCase() < b[property].toLowerCase()) ? -1 : (a[property].toLowerCase() > b[property].toLowerCase()) ? 1 : 0;
return result * sortOrder; return result * sortOrder;
} }
} }