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
@@ -46,7 +46,7 @@ SELECT
AND kv.{{ .Ident "name" }} = {{ .Arg .Request.Options.Key.Name }}
{{ end }}
{{ end }}
ORDER BY kv.{{ .Ident "resource_version" }} DESC
ORDER BY kv.{{ .Ident "namespace" }} ASC, kv.{{ .Ident "name" }} ASC
{{ if (gt .Request.Limit 0) }}
LIMIT {{ .Arg .Request.Limit }} OFFSET {{ .Arg .Request.Offset }}
{{ end }}
@@ -19,5 +19,5 @@ SELECT
AND {{ .Ident "name" }} = {{ .Arg .Request.Options.Key.Name }}
{{ end }}
{{ end }}
ORDER BY {{ .Ident "resource_version" }} DESC
ORDER BY {{ .Ident "namespace" }} ASC, {{ .Ident "name" }} ASC
;