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