Applied an order
This commit is contained in:
1 file changed
+1
-1
@@ -10,7 +10,7 @@ public static class TextElementProcessor
|
||||
public static async Task<List<TextElement>> GetTextElements(Section section)
|
||||
{
|
||||
await using var db = ProcessorMeta.ServiceProvider.GetRequiredService<DataContext>();
|
||||
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<ProcessorResult<TextElement>> AddTextElement(string? currentSectionKey, string elementName)
|
||||
|
||||
Reference in new issue
Block a user