Class: Pavsort::SuperSort
- Inherits:
-
Object
- Object
- Pavsort::SuperSort
- Defined in:
- lib/pavsort.rb
Class Method Summary collapse
Class Method Details
.sort(array) ⇒ Object
6 7 8 9 |
# File 'lib/pavsort.rb', line 6 def self.sort(array) part = array.partition{|element| element.respond_to?(:/)} num_sort(part.first) + alph_sort(part.last) end |