Web Development
Bug Report
JavaScript [10, 9, 1].sort() returns [1, 10, 9]: the default sort comparator
Our pricing page listed plans as 100, 1000, 25, 250. Array.prototype.sort() without a comparator converts values to strings and compares UTF-16 code units. We fixed every call site, handled nulls and mixed strings, and added a lint rule so it cannot return.