Module: Axiom::Relation::Operation::Sorted::Methods
- Defined in:
- lib/axiom/relation/operation/sorted.rb
Instance Method Summary collapse
-
#sort ⇒ Sorted
Return a sorted relation.
-
#sort_by(*args) {|relation| ... } ⇒ Sorted
Return a sorted relation.
Instance Method Details
#sort ⇒ Sorted
Return a sorted relation
162 163 164 |
# File 'lib/axiom/relation/operation/sorted.rb', line 162 def sort Sorted.new(self, nil) end |
#sort_by(*args) {|relation| ... } ⇒ Sorted
Return a sorted relation
150 151 152 |
# File 'lib/axiom/relation/operation/sorted.rb', line 150 def sort_by(*args, &block) Sorted.new(self, coerce_to_directions(*args, &block)) end |