From c9784cf8c93cbd20cf25c6d038d4f0cb5f8b900e Mon Sep 17 00:00:00 2001 From: Slendy Date: Wed, 31 May 2023 21:25:35 -0500 Subject: [PATCH] Fix hearted profiles being sorted in reverse order --- .../Controllers/Slots/ListController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs index ca9dec79..67fff180 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs @@ -254,7 +254,7 @@ public class ListController : ControllerBase pageData.TotalElements = await this.database.HeartedProfiles.CountAsync(h => h.UserId == targetUserId); List heartedProfiles = (await this.database.HeartedProfiles.Include(h => h.HeartedUser) - .OrderBy(h => h.HeartedProfileId) + .OrderByDescending(h => h.HeartedProfileId) .Where(h => h.UserId == targetUserId) .Select(h => h.HeartedUser) .ApplyPagination(pageData)