jeudi 24 septembre 2015

EmberJS model ordering

Given

model() {
  return this.store.findAll('foos')
},

In an Ember route how would I reverse the order of the records for display purposes?

i.e. in my template I have:

{{#each model as |foo|}}

and they are currently showing up in the exact opposite order that I would want.




Aucun commentaire:

Enregistrer un commentaire