sortWithDate method

List<T> sortWithDate(
  1. DateTime getDate(
    1. T instance
    )
)

Sort this Iterable based on DateTime extracted from type T using getDate.

Sorting DateTime in ascending order (older dates first).

Implementation

List<T> sortWithDate(DateTime Function(T instance) getDate) =>
    sortWith(getDate, Order.orderDate);