Class: Sorting::GuideProgress::ByProgress

Inherits:
SortBy
  • Object
show all
Defined in:
lib/mumuki/classroom/models/sorting/guide_progress.rb

Class Method Summary collapse

Methods inherited from SortBy

pipeline

Class Method Details

.order_by(ordering) ⇒ Object



130
131
132
133
134
135
136
# File 'lib/mumuki/classroom/models/sorting/guide_progress.rb', line 130

def self.order_by(ordering)
  {'stats.passed': ordering,
   'stats.passed_with_warnings': ordering,
   'stats.failed': ordering,
   'student.last_name': ordering,
   'student.first_name': ordering}
end