summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-29 22:00:14 +0200
committermadmaxoft <github@xoft.cz>2014-09-29 22:00:14 +0200
commit33dc66a4d23246b5794cf9ca5bd4287a72db4cec (patch)
tree21c480569faf2bcc1f18cfc1dbb75defc605102d /src
parentUpdated the Core. (diff)
downloadcuberite-33dc66a4d23246b5794cf9ca5bd4287a72db4cec.tar
cuberite-33dc66a4d23246b5794cf9ca5bd4287a72db4cec.tar.gz
cuberite-33dc66a4d23246b5794cf9ca5bd4287a72db4cec.tar.bz2
cuberite-33dc66a4d23246b5794cf9ca5bd4287a72db4cec.tar.lz
cuberite-33dc66a4d23246b5794cf9ca5bd4287a72db4cec.tar.xz
cuberite-33dc66a4d23246b5794cf9ca5bd4287a72db4cec.tar.zst
cuberite-33dc66a4d23246b5794cf9ca5bd4287a72db4cec.zip
Diffstat (limited to 'src')
-rw-r--r--src/RankManager.cpp2
-rw-r--r--src/RankManager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/RankManager.cpp b/src/RankManager.cpp
index 4abe8d1e1..f5342ed3d 100644
--- a/src/RankManager.cpp
+++ b/src/RankManager.cpp
@@ -671,7 +671,7 @@ AStringVector cRankManager::GetAllPlayerUUIDs(void)
AStringVector res;
try
{
- SQLite::Statement stmt(m_DB, "SELECT PlayerUUID FROM PlayerRank");
+ SQLite::Statement stmt(m_DB, "SELECT PlayerUUID FROM PlayerRank ORDER BY PlayerName COLLATE NOCASE");
while (stmt.executeStep())
{
res.push_back(stmt.getColumn(0).getText());
diff --git a/src/RankManager.h b/src/RankManager.h
index 3f5884f2e..61c52fda6 100644
--- a/src/RankManager.h
+++ b/src/RankManager.h
@@ -83,7 +83,7 @@ public:
Returns an empty vector if the rank doesn't exist. Any non-existent groups are ignored. */
AStringVector GetRankPermissions(const AString & a_RankName);
- /** Returns the short uuids of all defined players. */
+ /** Returns the short uuids of all defined players. The returned players are ordered by their name (NOT their UUIDs). */
AStringVector GetAllPlayerUUIDs(void);
/** Returns the names of all defined ranks. */