Class: USaidWat::Algorithms::LexicographicalAlgorithm
- Defined in:
- lib/usaidwat/algo.rb
Instance Attribute Summary
Attributes inherited from Algorithm
Instance Method Summary collapse
Methods inherited from Algorithm
Constructor Details
This class inherits a constructor from USaidWat::Algorithms::Algorithm
Instance Method Details
#sort(a, b) ⇒ Object
16 17 18 |
# File 'lib/usaidwat/algo.rb', line 16 def sort(a, b) a.downcase <=> b.downcase end |