From 719497d36e6bec5dd75d0b0e7c580f7afc0ea11a Mon Sep 17 00:00:00 2001 From: tschumpr Date: Thu, 1 Feb 2024 15:47:16 +0100 Subject: [PATCH] Sort completions by creationdate --- src/api/Controllers/CompletionController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/Controllers/CompletionController.cs b/src/api/Controllers/CompletionController.cs index 17c0807b5..3f18365e0 100644 --- a/src/api/Controllers/CompletionController.cs +++ b/src/api/Controllers/CompletionController.cs @@ -32,7 +32,7 @@ public async Task> 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);