1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-17 22:06:41 +02:00
TableFilter/src/sort.js
2015-02-28 20:27:28 +11:00

20 lines
361 B
JavaScript

define(["exports", "string"], function (exports, _string) {
"use strict";
/**
* Sort helpers
*/
var Str = _string.Str;
var Sort = {
ignoreCase: function ignoreCase(a, b) {
var x = Str.lower(a);
var y = Str.lower(b);
return x < y ? -1 : x > y ? 1 : 0;
}
};
exports.Sort = Sort;
});
//# sourceMappingURL=sort.js.map