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)