mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-17 22:06:41 +02:00
20 lines
361 B
JavaScript
20 lines
361 B
JavaScript
define(["exports", "string"], function (exports, _string) {
|
|
/**
|
|
* Sort helpers
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
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
|