Skip to content

Commit

Permalink
Sort completions by creationdate
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Feb 1, 2024
1 parent d9e3edf commit 719497d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/Controllers/CompletionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IEnumerable<Completion>> GetAsync([FromQuery] int? boreholeId

if (boreholeId != null)
{
completions = completions.Where(c => c.BoreholeId == boreholeId);
completions = completions.Where(c => c.BoreholeId == boreholeId).OrderBy(c => c.Created);
}

return await completions.ToListAsync().ConfigureAwait(false);
Expand Down

0 comments on commit 719497d

Please sign in to comment.