sortBy method

List sortBy(
  1. String key, [
  2. bool isDesc = false
])

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

Example:

list.sortBy("price") // create new list with soreted list according to price

Implementation

List<dynamic> sortBy(String key, [bool isDesc = false]) =>
    FxList.sortBy(this, key, isDesc);