Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(expr): Use a sensible sorting function for sorted()
Array.sort(), by default, converts numbers to strings and compares them lexically. This uses `(a > b) - (a < b)` to implement a standard comparison operator. Greater results in 1, equal in 0, lesser in -1.
- Loading branch information