queryOrderPresent function
Whether FFX's answer to a query ordered by order can hold doc at
all: the query's index has no entry for a record whose orderBy field is
absent or null (spanner-store computeEntryKeys), so FFX never lists
it, whatever the where clauses say. A device deciding which rows a list
shows checks this beside queryMatches.
Implementation
bool queryOrderPresent(Iterable<QueryOrder> order, Map<String, Object?> doc) {
for (final key in order) {
if (key.field == 'id') continue;
if (queryFieldValue(doc, key.field) == null) return false;
}
return true;
}