orderByDate method

List<T> orderByDate({
  1. String field = 'createdAt',
  2. bool descending = false,
})

Implementation

List<T> orderByDate({String field = 'createdAt', bool descending = false}) {
  return _harnCollection
      .orderByDate(field: field, descending: descending)
      .map((e) => fromMap(e))
      .toList();
}