Skip to content

Commit 6f0f2f8

Browse files
authored
order results of the uniqueness constraint query (#6459)
1 parent eb85edf commit 6f0f2f8

File tree

1 file changed

+7
-0
lines changed
  • backend/infrahub/core/validators/uniqueness

1 file changed

+7
-0
lines changed

backend/infrahub/core/validators/uniqueness/query.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ async def query_init(self, db: InfrahubDatabase, **kwargs: Any) -> None: # noqa
225225
attr_name,
226226
attr_value,
227227
relationship_identifier
228+
ORDER BY
229+
node_id,
230+
deepest_branch_name,
231+
node_count,
232+
attr_name,
233+
attr_value,
234+
relationship_identifier
228235
""" % {
229236
"select_subqueries_str": select_subqueries_str,
230237
"branch_filter": branch_filter,

0 commit comments

Comments
 (0)