Monthly Archive: March 2016

Fix Sorting in Javascript

Fix Sorting in Javascript

Normally sort function compare the ascii values of characters. ┬áThis becomes and issue when you want numbers like 1,10,2,20 to sort like 1,2,10,20. ┬áTo make these numbers sort in a ‘natural’ order you would...