From 50ef5e5e92315dc50218c9b5d15681ff24540029 Mon Sep 17 00:00:00 2001 From: Matic Jurglic Date: Fri, 10 Jan 2025 14:40:37 +0100 Subject: [PATCH] Make sure items in realm summary are ordered by display_name --- packages/runtime-common/index-writer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/runtime-common/index-writer.ts b/packages/runtime-common/index-writer.ts index bbfdcbe097..03fad5ea39 100644 --- a/packages/runtime-common/index-writer.ts +++ b/packages/runtime-common/index-writer.ts @@ -305,6 +305,7 @@ export class Batch { any([['i.is_deleted = false'], ['i.is_deleted IS NULL']]), ]), `GROUP BY i.display_names->>0, i.types->>0`, + `ORDER BY i.display_names->>0 ASC`, ] as Expression); let { nameExpressions, valueExpressions } = asExpressions(