Payments view now sorts payments by date.

This commit is contained in:
Scott Erickson 2014-12-03 19:43:57 -08:00
parent 4d72c1c84b
commit 41d78fd4c5

View file

@ -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: ->