From 2a5725d71ae9133141fe54d18525b9e79a755a6e Mon Sep 17 00:00:00 2001 From: Daniel Dickison Date: Sat, 28 Sep 2024 22:17:52 -0700 Subject: [PATCH] Fix sorting in heya for unranked players --- src/data/heya.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/heya.rs b/src/data/heya.rs index 5883818..fbad56a 100644 --- a/src/data/heya.rs +++ b/src/data/heya.rs @@ -347,7 +347,7 @@ impl Member { ":first_basho": basho_range.start }, Self::from_row)? .map(|r| r.unwrap()) - .sorted_by_key(|m| m.player.rank) + .sorted_by_key(|m| u16::MAX - m.recent_scores_total()) .collect()) }