dogweather / naturally

Natural sort algorithm
MIT License
87 stars 20 forks source link

sorts when some are letters only and some are numbers only #19

Closed evanlemke closed 9 years ago

evanlemke commented 9 years ago

I had a problem sorting an array [22, 2, "bbb", 11, 1, "aaa"]. I added a test for this case, and a possible solution.

dogweather commented 9 years ago

Thanks! I'll take a look.

dogweather commented 9 years ago

I'm pretty sure the latest gem version 1.4.0 will now sort this.