sortWithDate method
- DateTime getDate(
- T instance
Sort Iterable based on DateTime extracted from type T
using getDate
.
Sorting DateTime in ascending order (older dates first).
Implementation
Iterable<T> sortWithDate(DateTime Function(T instance) getDate) =>
sortWith(getDate, dateOrder);