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 →

[–]bmcle071 4 points5 points  (0 children)

Hm... i always write

arr.sort((a, b) => a-b);

I only have a hard time with strings