mercredi 10 février 2016

Sorting by properties by priority

I have items that I'm wanting to sort, my items have computed properties on the model that include winning, bidding, closed, and watching

I want to sort the items so that all the winning items are first, then all the bidding items, then all the watching items, then all the closed items.

How might I achieve this? Do I need to do it all in one sort function or can I specify multiple functions to sort by?




Aucun commentaire:

Enregistrer un commentaire