mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
List /teachers/classes classes most recent first
This commit is contained in:
parent
0316cc507e
commit
d223143557
1 changed files with 1 additions and 0 deletions
|
@ -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', ->
|
||||
|
|
Loading…
Reference in a new issue