Class: Spark::InternalSorter::Ascending

Inherits:
Base
  • Object
show all
Defined in:
lib/spark/sort.rb

Direct Known Subclasses

Descending

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spark::InternalSorter::Base

Instance Method Details

#sort(data) ⇒ Object



10
11
12
# File 'lib/spark/sort.rb', line 10

def sort(data)
  data.sort_by!(&@key_function)
end