diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-27 20:52:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-27 20:52:34 +0300 |
commit | 4f0c828135c37a176d97927e7e51b14dc84a719c (patch) | |
tree | 4b179015561f7e21a57e49849b4651cacfd87794 /src/guild.cpp | |
parent | 26dea46cf8ebcd22c62810bd9c866e7e7e2b6cb2 (diff) | |
download | ManaVerse-4f0c828135c37a176d97927e7e51b14dc84a719c.tar.gz ManaVerse-4f0c828135c37a176d97927e7e51b14dc84a719c.tar.bz2 ManaVerse-4f0c828135c37a176d97927e7e51b14dc84a719c.tar.xz ManaVerse-4f0c828135c37a176d97927e7e51b14dc84a719c.zip |
Change guild sorting order.
Diffstat (limited to 'src/guild.cpp')
-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; |