oldest method

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

The oldest methods allow you to easily order results by id. By default, the result will be ordered by the id field. Or, you may pass the column name that you wish to sort by:

Example:

list.oldest()

Implementation

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