orderByPriority method
Orders by the children's priorities: children without one first, then numbers, then strings;
ties go by key. This is also the order of a query with no orderBy*.
Implementation
Query orderByPriority() {
_validateNoPreviousOrderByCall('orderByPriority');
final QueryParams params = spec.params.orderBy(priorityIndex);
_validateQueryEndpoints(params);
return _with(params, ordered: true);
}