From ccc858830beb07f56276967d4c195ac266cfa061 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 17 Jul 2022 16:00:32 +0200 Subject: [PATCH] Applied an order --- I18N Commander/Processor/TextElementProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I18N Commander/Processor/TextElementProcessor.cs b/I18N Commander/Processor/TextElementProcessor.cs index 82a4718..be918a9 100644 --- a/I18N Commander/Processor/TextElementProcessor.cs +++ b/I18N Commander/Processor/TextElementProcessor.cs @@ -10,7 +10,7 @@ public static class TextElementProcessor public static async Task> GetTextElements(Section section) { await using var db = ProcessorMeta.ServiceProvider.GetRequiredService(); - return await db.TextElements.Where(n => n.Section == section).ToListAsync(); + return await db.TextElements.Where(n => n.Section == section).OrderBy(n => n.Name).ThenBy(n => n.Id).ToListAsync(); } public static async Task> AddTextElement(string? currentSectionKey, string elementName)