RubyGems.org

sortable

0.1

Sortable provides a DSL for defining sort order on any Ruby object To use it, you just call the sortable method and pass it a list of methods and/or blocks; when you call sort on a collection of these objects, each method/block is evaluated in turn, and the first that provides a non-zero sort value is used.

installgem install sortable
Authors

Ben Scofield

2,895 total downloads 1,751 for this version
Owners

365b57e63e4d5485a8da5365637f7e9301604be00b0c8371437cbc2b96265b9b

Gemfile
gem 'sortable', '~> 0.1'
Versions
  1. 0.1 September 23, 2009 (6 KB)
  2. 0.0.1 September 23, 2009 (6 KB)
Development Dependencies
  1. hoe >= 2.3.3