mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Payments view now sorts payments by date.
This commit is contained in:
parent
4d72c1c84b
commit
41d78fd4c5
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module.exports = class PaymentsView extends RootView
|
|||
|
||||
constructor: (options) ->
|
||||
super(options)
|
||||
@payments = new CocoCollection([], { url: '/db/payment', model: Payment })
|
||||
@payments = new CocoCollection([], { url: '/db/payment', model: Payment, comparator:'_id' })
|
||||
@supermodel.loadCollection(@payments, 'payments')
|
||||
|
||||
getRenderData: ->
|
||||
|
|
Loading…
Add table
Reference in a new issue