RubyGems.org

naturalsort

1.0.1

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'] == Features: * sort case insensitive * sort filename matching pattern "abc1", "abc12", "abc2" in the correct order * sort underscore insensitive == Synopsis: === Usage N°1 - Add to your ruby default objects Add natural sort methods to ruby default object (Array, Hash, etc...)

installgem install naturalsort -v 1.0.1
Authors

Benjamin Francisoud

16,535 total downloads 955 for this version
Owners

9084b2410f497f773e342b2d522b3818

Gemfile
gem "naturalsort", "~> 1.0.1"
Versions
  1. 1.1.1 July 20, 2010
  2. 1.1.0 January 7, 2008
  3. 1.0.1 December 17, 2007
  4. 1.0.0 December 16, 2007
Runtime Dependencies
  1. hoe >= 1.3.0