javascript-natural-sort icon indicating copy to clipboard operation
javascript-natural-sort copied to clipboard

Sort things "naturally" in Javascript

Results 15 javascript-natural-sort issues
Sort by recently updated
recently updated
newest added

A data entry of "1,310.1 ft" is not sorted correctly. Please take a look at my jsfiddle - https://jsfiddle.net/pmi2018/7etqo15k/21/. Be sure to select the "show 25 entries" in the top...

Tweaked two lines in naturalSort.js so that it will look for a key called ".sortKey" and use that as a comparison value before falling back to comparing a/b itself. This...

I wish to use this in a project - hence I wanted this to be tagged.

Are there any plans publish this to NPM or set up a CI server to do that?

`node_modules/javascript-natural-sort/.idea/` And it's full of files from your IDE

IP addresses currently sort the first chunk as a float. This bug leads, for example, `192.200.2.3` to sorts before `192.42.2.3`, instead of after it. ```js /* Version: 0.8.1 */ ['192.200.2.3','192.42.2.3','192.3.2.1'].sort(naturalSort)...

I hope you don't take this the wrong way, but the existing code is horrible. It is extremely hard to read and understand, mostly thanks to the choice of cryptic...

In German letters with umlaut (Ä, Ö, Ü) are treated generally just like their non-umlauted versions; ß is always sorted as ss. This makes the alphabetic order Arg, Ärgerlich, Arm,...