sortDescBy method

List<Map<T, T>> sortDescBy(
  1. String key
)

The sortDescBy method sorts the list of objects by the given key.

Example:

list.sortDescBy("price")

This method has the same signature as the sortBy method,
but will sort the collection in the opposite order

Implementation

List<Map<T, T>> sortDescBy(String key) => sortBy(key, isDesc: true);