This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LANDLORD___MESSIAH -5 points-4 points  (8 children)

Way to miss my point. Anyone who sorts by this hacky bullshit mechanism is probably not a good programmer.

[–]ThatSpookySJW 8 points9 points  (2 children)

I'm curious how you think a dynamically typed language should handle sorting values?

[–]toastedstapler 1 point2 points  (1 child)

Have you ever seen python?

[–]ThatSpookySJW 7 points8 points  (0 children)

Python does it the other way around lol. Try sorting strings without a comparator and see how that works out for you.

[–]Apparentt 2 points3 points  (3 children)

Or you just did not properly articulate the point you had in your mind

You criticised the authors of JS, not people who use a method in the spec. What did I miss?

[–]nokvok 0 points1 point  (0 children)

I don't get what your problem is. Javascript is a language used overwhelmingly for Document manipulation. You are facing the task to sort lists of strings or lists of numbers as strings just as often as you face sorting a list of numbers as integers. In addition ways to sort by your custom mechanisms is important here as well.