naturally
naturally copied to clipboard
Natural sort algorithm
This is a draft PR since it does not necessarily overlap with the goals of this gem. Using `twitter_cldr` we can solve #20 and partly #18. #20, because we can...
Is: ``` Naturally.sort %w(Birnen Äpfel Zitronen) => ["Birnen", "Zitronen", "Äpfel"] ``` Correct would be: ``` Naturally.sort %w(Birnen Äpfel Zitronen) => ["Äpfel", "Birnen", "Zitronen"] ```
Hi, I like you little gem very much. I have used is a lot, but I have one issue with it: When the items in the array contain underscores and...
Works well with structured data that is similar, but the following arbitrary strings cause a failure: For example arr = [ "99-101 some street address", "Some other thing", "1"] Naturally.sort(arr)...
Would it be possible to add a flag that allows for case case insensitive sorting