From d102138da48715ac8ad27cef965490791f9d741f Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 24 Mar 2024 14:53:11 +0100 Subject: [PATCH] Fix bans sort being broken OOPS --- SS14.Admin/Pages/Bans/Index.cshtml.cs | 2 +- SS14.Admin/Pages/RoleBans/Index.cshtml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SS14.Admin/Pages/Bans/Index.cshtml.cs b/SS14.Admin/Pages/Bans/Index.cshtml.cs index a0aa420..2632452 100644 --- a/SS14.Admin/Pages/Bans/Index.cshtml.cs +++ b/SS14.Admin/Pages/Bans/Index.cshtml.cs @@ -103,7 +103,7 @@ public static async Task LoadSortBanTableData( sortState.AddColumn("ip", p => p.Ban.Address); sortState.AddColumn("uid", p => p.Ban.PlayerUserId); sortState.AddColumn("time", p => p.Ban.BanTime, SortOrder.Descending); - sortState.AddColumn("round", p => p.Ban.RoundId, SortOrder.Descending); + sortState.AddColumn("round", p => p.Ban.RoundId); // sortState.AddColumn("expire_time", p => p.ban.Unban == null ? p.ban.ExpirationTime : p.ban.Unban!.UnbanTime); sortState.AddColumn("admin", p => p.Admin!.LastSeenUserName); sortState.AddColumn("hits", p => p.HitCount); diff --git a/SS14.Admin/Pages/RoleBans/Index.cshtml.cs b/SS14.Admin/Pages/RoleBans/Index.cshtml.cs index af12a1e..f8f4f7e 100644 --- a/SS14.Admin/Pages/RoleBans/Index.cshtml.cs +++ b/SS14.Admin/Pages/RoleBans/Index.cshtml.cs @@ -102,7 +102,7 @@ public static async Task LoadSortBanTableData( sortState.AddColumn("ip", p => p.Ban.Address); sortState.AddColumn("uid", p => p.Ban.PlayerUserId); sortState.AddColumn("time", p => p.Ban.BanTime, SortOrder.Descending); - sortState.AddColumn("round", p => p.Ban.RoundId, SortOrder.Descending); + sortState.AddColumn("round", p => p.Ban.RoundId); // sortState.AddColumn("expire_time", p => p.ban.Unban == null ? p.ban.ExpirationTime : p.ban.Unban!.UnbanTime); sortState.AddColumn("admin", p => p.Admin!.LastSeenUserName); sortState.AddColumn("role", p => p.Ban.RoleId);