public
Fork of defunkt/version_sorter
Description:
Homepage:
Clone URL: git://github.com/pope/version_sorter.git
name age message
file .gitattributes Sun Oct 11 07:59:20 -0700 2009 Trying to speed things up with C. This commit ... [pope]
file .gitignore Sun Oct 11 07:59:20 -0700 2009 Trying to speed things up with C. This commit ... [pope]
file README.markdown Tue Oct 13 12:37:51 -0700 2009 installation [defunkt]
file Rakefile Tue Oct 13 12:36:51 -0700 2009 gemify [defunkt]
directory ext/ Tue Oct 13 19:05:35 -0700 2009 Added cmockery as a framework and removed pcre.... [pope]
directory lib/ Wed Oct 14 00:31:54 -0700 2009 1.1.0 [defunkt]
directory test/ Tue Oct 13 11:32:18 -0700 2009 setup paths so the tests run [defunkt]
README.markdown

VersionSorter

By pope.

require 'version_sorter'
versions = %w( 1.0.9 2.0 1.0.10 1.0.3 )
VersionSorter.rsort(versions) # => ["2.0", "1.0.10", "1.0.9", "1.0.3"]
VersionSorter.sort(versions)  # => ["1.0.3", "1.0.9", "1.0.10", "2.0"]

http://github.com/blog/521-speedy-version-sorting

Install

Gemcutter

$ gem install version_sorter