Fixed order of items on layer to be the same as created

This commit is contained in:
Thorsten Sommer 2022-07-09 21:14:57 +02:00
parent aa34f541cf
commit e8711de0d6
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -11,7 +11,7 @@ public static class SectionProcessor
/// </summary> /// </summary>
public static IAsyncEnumerable<Section> LoadLayer(DataContext db, int depth) public static IAsyncEnumerable<Section> LoadLayer(DataContext db, int depth)
{ {
return db.Sections.Where(n => n.Depth == depth).OrderBy(n => n.DataKey).AsAsyncEnumerable(); return db.Sections.Where(n => n.Depth == depth).OrderBy(n => n.Id).AsAsyncEnumerable();
} }
/// <summary> /// <summary>