Class: Sorting::Student::ByLastSubmissionDate
- Inherits:
-
Sorting::SortBy
- Object
- Sorting::SortBy
- Sorting::Student::ByLastSubmissionDate
- Defined in:
- lib/mumuki/classroom/models/sorting/student.rb
Class Method Summary collapse
Methods inherited from Sorting::SortBy
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 |