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.
Required Ruby Version
None
Authors
Ben Scofield
Versions
-
0.1
-
source
- 0.1 source September 23, 2009 (6 KB)
-
-
0.0.1
-
source
- 0.0.1 source September 23, 2009 (6 KB)
-