class Sorting::Student::ByProgress

Public Class Methods

order_by(ordering) click to toggle source
# File lib/mumuki/classroom/models/sorting/student.rb, line 19
def self.order_by(ordering)
  {'stats.total': ordering,
   'stats.failed': !ordering,
   'stats.passed_with_warnings': !ordering,
   'stats.passed': !ordering,
   'last_name': ordering,
   'first_name': ordering}
end