orderByChild method

Query orderByChild(
  1. String path
)

Generate a view of the data sorted by values of a particular child path.

Intended to be used in combination with startAt, endAt, or equalTo.

Implementation

Query orderByChild(String path) {
  assert(
    path.isNotEmpty,
    'The key cannot be empty. Use `orderByValue` instead',
  );
  return Query._(
    _queryDelegate,
    _modifiers.order(OrderModifier.orderByChild(path)),
  );
}