1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-17 22:06:41 +02:00
TableFilter/src-es6/sort.js
2015-05-02 19:54:24 +10:00

15 lines
231 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;