Fix sorting of player games.

This commit is contained in:
yukirij 2024-10-18 14:41:56 -07:00
parent 08db4c0432
commit e18d281b81

View File

@ -937,7 +937,7 @@ pub async fn thread_system(mut app:App, bus:Bus<protocol::QRPacket>)
response.history = filter_sessions(&app, user_id, filter);
response.history.sort_by(|a, b| {
a.is_complete.cmp(&b.is_complete)
(a.is_complete != 0).cmp(&(b.is_complete != 0))
});
}