diff options
| -rw-r--r-- | src/game.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.rs b/src/game.rs index 025d7a7..e75d476 100644 --- a/src/game.rs +++ b/src/game.rs @@ -261,7 +261,9 @@ fn game(_ctx: &mut Context, msg: &Message, args: Args, min_status: GameStatus) - games_in_common = games_in_common.intersection(&relevant_games).cloned().collect(); } - let games_formatted = games_in_common.iter().sorted().join("\n"); + let games_formatted = games_in_common.iter().sorted_by(|a, b| { + a.to_lowercase().cmp(&b.to_lowercase()) + }).join("\n"); send(msg.channel_id, &games_formatted, msg.tts) } |
