diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/guild.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/guild.cpp b/src/guild.cpp index 57b3d52e1..acf35bac9 100644 --- a/src/guild.cpp +++ b/src/guild.cpp @@ -33,12 +33,13 @@ class SortGuildFunctor { if (!m1 || !m2) return false; - if (m1->getPos() != m2->getPos()) - return m1->getPos() < m2->getPos(); if (m1->getOnline() != m2->getOnline()) return m1->getOnline() > m2->getOnline(); + if (m1->getPos() != m2->getPos()) + return m1->getPos() < m2->getPos(); + return m1->getName() < m2->getName(); } } guildSorter; |