Class: Sorting::GuideProgress::ByName
- Defined in:
- lib/mumuki/classroom/models/sorting/guide_progress.rb
Class Method Summary collapse
Class Method Details
.order_by(ordering) ⇒ Object
123 124 125 126 |
# File 'lib/mumuki/classroom/models/sorting/guide_progress.rb', line 123 def self.order_by(ordering) {'student.last_name': ordering, 'student.first_name': ordering} end |
.pipeline ⇒ Object
116 117 118 119 120 121 |
# File 'lib/mumuki/classroom/models/sorting/guide_progress.rb', line 116 def self.pipeline [{'$addFields': { 'student.last_name': {'$toLower': '$student.last_name'}, 'student.first_name': {'$toLower': '$student.first_name'} }}] end |