Sorting when using v-for

I am using v-for to display a list of surgeries. How would I change the sort order to descending in this?

v-for="previousSurgery, index in _.sortBy(model.previousSurgeries, ['dateAsNumber', 'previousSurgery'])"

Great question:

Sorting or better “ordering” is bettere handled with lodash’s orderBy function as documented here:

// ordering code for date newest first and ascending order#:
_.orderBy(model.previousSurgeries, ['dateAsNumber', 'previousSurgery'], ['desc', 'asc'])