qsu
Version:
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
1 lines • 134 B
JavaScript
export function sortNumeric(r,e=!1){const o=new Intl.Collator([],{numeric:!0}),t=r.sort((r,e)=>o.compare(r,e));return e?t.reverse():t}