Class: Sorting::Student::ByLastSubmissionDate

Inherits:
Sorting::SortBy show all
Defined in:
lib/mumuki/classroom/models/sorting/student.rb

Class Method Summary collapse

Methods inherited from Sorting::SortBy

pipeline

Class Method Details

.order_by(ordering) ⇒ Object



38
39
40
41
42
# File 'lib/mumuki/classroom/models/sorting/student.rb', line 38

def self.order_by(ordering)
  {'last_assignment.submission.created_at': !ordering,
   'last_name': ordering,
   'first_name': ordering}
end