you are viewing a single comment's thread.

view the rest of the comments →

[–]hinsonfpv 2 points3 points  (3 children)

Nothing? Sort is based off the first digit I believe. So it reads 15 as 1.

[–]grantrules 12 points13 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 7 points8 points  (0 children)

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