Adds sorting to the query.
Query<T> orderBy({ required String field, bool descending = false, }) { state = state.orderBy(field, descending: descending); return state; }