This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitattributes | Sun Oct 11 07:59:20 -0700 2009 | |
| |
.gitignore | Sun Oct 11 07:59:20 -0700 2009 | |
| |
README.markdown | Tue Oct 13 12:37:51 -0700 2009 | |
| |
Rakefile | Tue Oct 13 12:36:51 -0700 2009 | |
| |
ext/ | Tue Oct 13 19:05:35 -0700 2009 | |
| |
lib/ | Wed Oct 14 00:31:54 -0700 2009 | |
| |
test/ | Tue Oct 13 11:32:18 -0700 2009 |
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







