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

  1. 0.1
    1. source

      1. 0.1 source September 23, 2009 (6 KB)
  2. 0.0.1
    1. source

      1. 0.0.1 source September 23, 2009 (6 KB)

SHA 256 checksum