UNPKG

sort-isostring

Version:

A tiny (110B) utility to sort ISO 8601 Date strings

1 lines 482 B
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=function(e,t){for(var r=0,n=0;r<t.length;r++)if(n=e.charCodeAt(r)-t.charCodeAt(r))return n;return n}:"function"==typeof define&&define.amd?define(t):e["sort-isostring"]=function(e,t){for(var r=0,n=0;r<t.length;r++)if(n=e.charCodeAt(r)-t.charCodeAt(r))return n;return n}}(this,(function(){return function(e,t){for(var r=0,n=0;r<t.length;r++)if(n=e.charCodeAt(r)-t.charCodeAt(r))return n;return n}}));