sort method

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

Implementation

RealtimeQueryBuilder<T> sort(String field, {bool descending = false}) {
  final nextSort = LinkedHashMap<String, int>.from(_sort);
  nextSort[field] = descending ? -1 : 1;
  return _copyWith(sort: nextSort);
}