try `Array.prototype.call` for sorting, instead of making a whole new array.