1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-23 08:42:18 +02:00
TableFilter/src-es6/sort.js
2015-02-01 19:26:48 +11:00

15 lines
229 B
JavaScript

/**
* Sort helpers
*/
import {Str} from 'string';
var Sort = {
ignoreCase(a, b){
var x = Str.lower(a);
var y = Str.lower(b);
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
}
};
exports.Sort = Sort;