Module: ODDB::ResultStateSort

Included in:
State::Drugs::RecentRegs, State::Drugs::Result
Defined in:
src/util/resultsort.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) sort



6
7
8
9
10
11
12
13
# File 'src/util/resultsort.rb', line 6

def sort
  get_sortby!
  @model.each { |atc| 
    atc.packages.sort! { |a, b| compare_entries(a, b) }
    atc.packages.reverse! if(@sort_reverse)
  }
  self
end