Skip to content

Instantly share code, notes, and snippets.

@svasva
Created November 12, 2013 15:30
Show Gist options
  • Save svasva/7432799 to your computer and use it in GitHub Desktop.
Save svasva/7432799 to your computer and use it in GitHub Desktop.
Cx.RecentTradesComponent = Ember.Component.extend
ctrl: Ember.ArrayController.create
sortProperties: ['created_at']
sortAscending: false
sortedTrades: (->
proxy = Ember.ArrayProxy.create()
@ctrl.set('content', @get('trades'))
proxy.set('content', @ctrl.get('arrangedContent'))
proxy
).property('trades')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment