The cool thing about this is that the sorted array is automatically in-sync with the original array, so as you add and remove objects the array stays sorted.
See it in action over here and see how to sort it in descending order.

Bonus

Notice the sortBy property above is an array, this means you can sort by multiple properties e.g.