From d419b1f0ff281ca6b0ec76285efdcc629f6f8981 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 24 Feb 2014 10:56:47 +0100 Subject: [PATCH] [UPDATE] sorting by count --- public/include/classes/user.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index 53bc8ad1..daf3d7d7 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -156,6 +156,7 @@ class User extends Base { LEFT JOIN " . $this->getTableName() . " AS a ON a.id = i.account_id GROUP BY i.account_id + ORDER BY invitationcount ASC LIMIT ?"); if ($this->checkStmt($stmt) && $stmt->bind_param("i", $limit) && $stmt->execute() && $result = $stmt->get_result()) { return $result->fetch_all(MYSQLI_ASSOC);