List /teachers/classes classes most recent first

This commit is contained in:
Matt Lott 2016-09-03 08:28:40 -07:00
parent 0316cc507e
commit d223143557

View file

@ -34,6 +34,7 @@ module.exports = class TeacherClassesView extends RootView
initialize: (options) ->
super(options)
@classrooms = new Classrooms()
@classrooms.comparator = (a, b) -> b.id.localeCompare(a.id)
@classrooms.fetchMine()
@supermodel.trackCollection(@classrooms)
@listenTo @classrooms, 'sync', ->