array.prototype.tosorted

An ESnext spec-compliant `Array.prototype.toSorted` shim/polyfill/replacement that works as far down as ES3.

sort-array

Isomorphic, load-anywhere function to sort an array by scalar, deep or computed values in any standard or custom order