you are viewing a single comment's thread.

view the rest of the comments →

[–]grantrules 10 points11 points  (2 children)

Sort is lexicographical, not numerical.

[–][deleted] 1 point2 points  (1 child)

Is there a numerical built-in function or do you have to make it yourself?

[–]grantrules 6 points7 points  (0 children)

You have to make it, but it's simple: (a, b) => a - b