var g=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(g||{});const c=(e,t)=>e.localeCompare(t),o=(e,t)=>e===t?0:e<t?1:-1,f=(e,t)=>{const s=new Date(e).getTime(),r=new Date(t).getTime();return o(s,r)},n=(e,t=c,s=0)=>r=>{if(!e)return r;const u=r.sort(({[e]:a},{[e]:m})=>t(a,m));return s===1?u.reverse():u};n.string=c;n.number=o;n.date=f;export{g as S,n as s};
