Solution: Sorting a Collection

Follow step-by-step instructions to sort a collection in Marionette using functions.

We can use either a sortBy function or a sort comparator function that expects two arguments.

Solution 1: Using the sortBy function

We create the following function, which has been highlighted in the code provided below:

Get hands-on with 1200+ tech skills courses.