66
galena
6y

1
10
11
12
2
3
4
5
6
7
8
9
Lets sort numbers like this!
-Greetings from my file manager!

Comments
  • 31
    That's also why love CS teachers that assign homework with 01, 02, etc and despise those who dont.
  • 6
    @tokumei my mind has just been blown...
  • 0
    @24th-Dragon or maybe its written with javascript
  • 3
    nemo handles this correctly
  • 3
    Excel has “sort anything that looks like a number as a number” option for this reason.
  • 1
    @bkwilliams yea but if I recall, and unless it's gotten better, it can't tell a number in the middle of a word.

    1a
    2a
    10a

    works fine. but:

    ab1
    ab10
    ab2

    the numbers arent at the start, therefore it's a string. maybe Excel has fixed this (please correct me if they have) but a lot of other software shows this inconsistency.
Add Comment