Skip to content

Commit

Permalink
More tweaks...
Browse files Browse the repository at this point in the history
mrow
  • Loading branch information
Simyon264 committed Aug 29, 2024
1 parent fe68d3d commit d4346ff
Show file tree
Hide file tree
Showing 10 changed files with 1,097 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ReplayBrowser/Controllers/ReplayController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public async Task<IActionResult> GetReplay(int replayId)
return NotFound();
}

// Sort replay events by time
if (replay.Events != null)
replay.Events = replay.Events.OrderBy(e => e.Time).ToList();

var settings = new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
Expand Down
Loading

0 comments on commit d4346ff

Please sign in to comment.