summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/guild.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/guild.cpp b/src/guild.cpp
index acf35bac9..d79e6fd17 100644
--- a/src/guild.cpp
+++ b/src/guild.cpp
@@ -24,6 +24,8 @@
#include "actorspritemanager.h"
+#include "utils/stringutils.h"
+
#include "debug.h"
class SortGuildFunctor
@@ -40,7 +42,16 @@ class SortGuildFunctor
if (m1->getPos() != m2->getPos())
return m1->getPos() < m2->getPos();
- return m1->getName() < m2->getName();
+ if (m1->getName() != m2->getName())
+ {
+ std::string s1 = m1->getName();
+ std::string s2 = m2->getName();
+ toLower(s1);
+ toLower(s2);
+ return s1 < s2;
+ }
+ return false;
+// return m1->getName() < m2->getName();
}
} guildSorter;