Respond to PR feedback.

This commit is contained in:
Sam Rose 2024-06-24 17:30:10 +01:00
parent da1eb6f6ac
commit 58d8f2bb64
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -450,8 +450,8 @@ class InternalBuilder {
} }
} }
// add sorting by the primary key if the result isn't isn't already sorted // add sorting by the primary key if the result isn't already sorted by it,
// by it, to make sure result is deterministic // to make sure result is deterministic
if (!sort || sort[primaryKey[0]] === undefined) { if (!sort || sort[primaryKey[0]] === undefined) {
query = query.orderBy(`${aliased}.${primaryKey[0]}`) query = query.orderBy(`${aliased}.${primaryKey[0]}`)
} }