Skip to content
RED SAG Skills
hard20 pts · first answer countsarraysstringssorting

Sorting file names with numbers

['item10', 'item2', 'item1'].sort() gives ['item1', 'item10', 'item2']. Which comparator sorts them as item1, item2, item10?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions