diff --git a/Applications/IRCClient/IRCClient.cpp b/Applications/IRCClient/IRCClient.cpp index e98391d1f4..c9633e78af 100644 --- a/Applications/IRCClient/IRCClient.cpp +++ b/Applications/IRCClient/IRCClient.cpp @@ -5,6 +5,7 @@ #include "IRCQuery.h" #include "IRCWindow.h" #include "IRCWindowListModel.h" +#include #include #include #include @@ -513,6 +514,11 @@ void IRCClient::handle_rpl_namreply(const Message& msg) auto& channel_name = msg.arguments[2]; auto& channel = ensure_channel(channel_name); auto members = msg.arguments[3].split(' '); + + quick_sort(members.begin(), members.end(), [](auto& a, auto& b) { + return strcasecmp(a.characters(), b.characters()) < 0; + }); + for (auto& member : members) { if (member.is_empty()) continue;