]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix sorting admin player tab playtime alphabetically (#21028)
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Mon, 16 Oct 2023 05:32:51 +0000 (22:32 -0700)
committerGitHub <noreply@github.com>
Mon, 16 Oct 2023 05:32:51 +0000 (23:32 -0600)
* Fix sorting admin player tab playtime alphabetically

* Admin changelog

Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs
Resources/Changelog/Admin.yml

index e6a64fc48d4a0fbfb46cdbb3294e3df00dc4e55d..4f77369b57b3cd6bd5a6ecbcc795d42edc3442b6 100644 (file)
@@ -150,7 +150,7 @@ namespace Content.Client.Administration.UI.Tabs.PlayerTab
                 Header.Character => Compare(x.CharacterName, y.CharacterName),
                 Header.Job => Compare(x.StartingJob, y.StartingJob),
                 Header.Antagonist => x.Antag.CompareTo(y.Antag),
-                Header.Playtime => Compare(x.PlaytimeString, y.PlaytimeString),
+                Header.Playtime => TimeSpan.Compare(x.OverallPlaytime ?? default, y.OverallPlaytime ?? default),
                 _ => 1
             };
         }
index 5a24f0d9794cf2a162a5705aa862dcafa194e3de..74156b9d1326a0f8f0cc6ce0f233a0fd51385789 100644 (file)
@@ -41,3 +41,8 @@ Entries:
   - {message: 'Fixed not being able to sort the F7 players tab by playtime.', type: Fix}
   id: 6
   time: '2023-10-14T23:52:00.0000000+00:00'
+- author: DrSmugleaf
+  changes:
+  - {message: 'Fixed playtime being sorted incorrectly in the F7 players tab.', type: Fix}
+  id: 7
+  time: '2023-10-16T04:23:00.0000000+00:00'