You can sort objects by property, not just simple basic items.  In the event that JSON is sent down from the server and objects need to be sorted, keep this in mind!