...

/

Solution: Sorting a Collection

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:

Access this course and 1400+ top-rated courses and projects.