unifiedStorage: sort by namespace/name ASC (#91314)

* unified: sort by key asc

* sort by key

* keep tests commented
This commit is contained in:
Georges Chaudy
2024-08-01 10:27:01 +02:00
committed by GitHub
parent a77ff98d3f
commit 36c2e0cfae
6 changed files with 22 additions and 22 deletions
@@ -8,6 +8,6 @@ INNER JOIN (
) AS maxkv
ON maxkv."resource_version" = kv."resource_version" AND maxkv."namespace" = kv."namespace" AND maxkv."group" = kv."group" AND maxkv."resource" = kv."resource" AND maxkv."name" = kv."name"
WHERE kv."action" != 3 AND kv."namespace" = ?
ORDER BY kv."resource_version" DESC
ORDER BY kv."namespace" ASC, kv."name" ASC
LIMIT ? OFFSET ?
;
@@ -1,5 +1,5 @@
SELECT "resource_version", "namespace", "name", "value"
FROM "resource"
WHERE 1 = 1 AND "namespace" = ?
ORDER BY "resource_version" DESC
ORDER BY "namespace" ASC, "name" ASC
;