Technology · Culture · Change
Sign inJoin us
TechTrends NowFollow the next shiftTechnology · Culture · Change
← Latest news

From Dev.to

Why sort() puts 100 before 2, and Eclair after zebra

[10, 9, 1, 100, 25, 2].sort() does not give you 1, 2, 9, 10, 25, 100. I ran the usual ways to sort numbers and names in Node v22.23.4 (V8) and wrote down what each one does, so you can pick on purpose...

Read the full report at Dev.to ↗