Skip to content

Commit 91bb144

Browse files
committed
Order data
1 parent 762e8ac commit 91bb144

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Home/Store/EventDataMapper.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using PocketDDD.BlazorClient.Features.Sync.Store;
2-
using PocketDDD.Shared.API.ResponseDTOs;
1+
using PocketDDD.Shared.API.ResponseDTOs;
32
using System.Collections.Immutable;
4-
using System.Runtime.CompilerServices;
53

64
namespace PocketDDD.BlazorClient.Features.Home.Store;
75

@@ -24,6 +22,10 @@ public static IImmutableList<TimeSlot> ToHomeStateModel(this EventDataResponseDT
2422
TrackName = eventData.Tracks.Single(tr => tr.Id == s.TrackId).Name,
2523
RoomName = eventData.Tracks.Single(tr => tr.Id == s.TrackId).RoomName,
2624
IsBookmarked = sessionBookmarks.Contains(s.Id)
27-
}).ToImmutableList()
28-
}).ToImmutableList();
25+
})
26+
.OrderBy(s => s.TrackName)
27+
.ToImmutableList()
28+
})
29+
.OrderBy(ts => ts.From)
30+
.ToImmutableList();
2931
}

0 commit comments

Comments
 (0)