orderBy method
Implementation
InAppQueryReference orderBy(
Object field, {
bool descending = false,
}) {
List<Sorting> sorts = List.from(_o);
if (field is String) {
sorts.add(Sorting(field, descending: descending));
}
return InAppQueryReference(
db: _db,
reference: reference,
path: path,
id: id,
queries: _q,
selections: _s,
sorts: sorts,
options: _op,
counterMode: _cm,
);
}