dogweather / naturally

Natural sort algorithm
MIT License
87 stars 20 forks source link

added sort case when numbers having digit at the end and rspecs #4

Closed kuldeepaggarwal closed 10 years ago

kuldeepaggarwal commented 11 years ago

I have added a feature in which this gem will be able to sort the array of strings in way that if digits appear after alphabets in an element then the elements will be sorted numerically.

e.g. ["c1", "c10b", "c11a", "c2"] #=> ["c1", "c2", "c11a", "c10b"]

Resolved issue #2

kuldeepaggarwal commented 10 years ago

@dogweather Any update?

dogweather commented 10 years ago

Thanks for the nudge - will take a look.

kuldeepaggarwal commented 10 years ago

:yellow_heart:

dogweather commented 10 years ago

This change is in a different pull request and merged. Not sure how it didn't take place here.

kuldeepaggarwal commented 10 years ago

wow cool :clap:. Hey can you please mention which PR has been merge for the same?

dogweather commented 10 years ago

It's called pr/4.