oldest method

List<Map<T, T>> oldest([
  1. String key = 'id'
])

Returns a list of maps sorted by the given key in ascending order.

By default, it sorts by the 'id' key.

Example:

final oldestItems = list.oldest("timestamp");

Implementation

List<Map<T, T>> oldest([String key = 'id']) => sortBy(key);