orderBy method

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

Implementation

List<T> orderBy(String field, {bool descending = false}) {
  final order = _harnCollection.orderBy(field, descending: descending);
  final response = order.map((e) => fromMap(e)).toList();
  harnLog.register({"orderBy": response});
  return response;
}