I am using Jim Palmer's natural sort (http://www.overset.com/2008/09/01/javascript-natural-sort-algorithm/) and I have an array ['1a','1b','1c',...] etc. The problem I am having is that it sorts 1d, 1e, 1f incorrectly. I have found that every alpha numeric comparison returns either 1 or -1 except for 1d,1e,1f which always returns 0, does anyone know why this could be occuring?
Edit: http://jsbin.com/peviteyifa/edit?html,js,console,output here is an example this is a pretty specific problem I am having related to jquery datatables
when I try to sort
columnDefs: [{targets: 0, type: 'natural'}]