Release Name: 1.1.1
Notes:
Examples:
['a1', 'a11', 'a12', 'a2', 'a21'] => ['a1', 'a2', 'a11', 'a12','a21']
['a', 'b', 'c', 'A', 'B', 'C'] => ['A', 'a', 'B', 'b', 'C', 'c']
['x__2', 'x_1'] => ['x_1', 'x__2']
['x2-y08', 'x2-g8', 'x2-y7', 'x8-y8'] => ['x2-g8', 'x2-y7', 'x2-y08', 'x8-y8']
* ['x02-y08', 'x02-g8', 'x2-y7', 'x8-y8'] => ['x02-g8', 'x2-y7', 'x02-y08', 'x8-y8']
== Features:
* sort case insensitive
* sort filename matching pattern "abc1", "abc12", "abc2" in the correct order
* sort filename matching pattern "a1b2"
* sort underscore insensitive
== Install:
* sudo gem install naturalsort
Changes:
== 1.1.1 / 2010-07-21
* Fix typo error in some unit test
* Remove copy/paste between naturalsort and natural_sort methods
* Added samples in rdoc
* Adding contribution from Sobe http://pastie.caboo.se/139803 (thanks mate)
* Sort complex text list (see test_natural_sort_kernel.rb:107))
* Fix more complex [string][number] pattern like:
* ["x2-y08", "x2-g8", "x2-y7", "x8-y8"].natural_sort => ["x2-g8", "x2-y7", "x2-y08", "x8-y8"]
* ["x02-y08", "x02-g8", "x2-y7", "x8-y8"].natural_sort => ["x02-g8", "x2-y7", "x02-y08", "x8-y8"]
* Fix bug in Range ordering:
* (1..21).natural_sort => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
== 1.1.0 / 2008-01-08
* Improve documentation to get better google results
* Remove alias methods: sort_natural, sort_alpha, alpha_sort, sort_alphabetical, alphabetical_sort, sort_alphanum, alphanum_sort
|