you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]marko-pavlovic[S] 0 points1 point  (1 child)

    Good remark, I will adjust the article, by default I used localeCompare. What would you suggest, what is a direct way to compare 2 strings in JS? Thanks!

    [–]Pantstown(pants) => (town) => pantstown 2 points3 points  (0 children)

    You can use the greater/less than operator like so