Respond to PR feedback.
This commit is contained in:
parent
da1eb6f6ac
commit
58d8f2bb64
|
@ -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]}`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue