From 4f0c828135c37a176d97927e7e51b14dc84a719c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 27 Aug 2011 20:52:34 +0300 Subject: Change guild sorting order. --- src/guild.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2