Fix sorting admin player tab playtime alphabetically (#21028)

* Fix sorting admin player tab playtime alphabetically

* Admin changelog
This commit is contained in:
DrSmugleaf
2023-10-15 22:32:51 -07:00
committed by GitHub
parent 1f564f06b2
commit c3e303b80b
2 changed files with 6 additions and 1 deletions

View 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
};
}

View 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'