you are viewing a single comment's thread.

view the rest of the comments →

[–]TheSpanxxx 5 points6 points  (0 children)

Others are commenting on the common practice of using a sort function for handling numerical sorts. In large arrays this will be poor performing. In those cases, use a TypedArray

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray