diff --git a/GameEngine/Admin/database.php b/GameEngine/Admin/database.php index 6d852d84..ab07312a 100755 --- a/GameEngine/Admin/database.php +++ b/GameEngine/Admin/database.php @@ -271,7 +271,7 @@ class adm_DB { function getUserActive() { $time = time() - (60*5); - $q = "SELECT * FROM ".TB_PREFIX."users where timestamp > $time and username != 'support'"; + $q = "SELECT * FROM ".TB_PREFIX."users where timestamp > $time and username != 'support' ORDER BY access DESC, lastupdate DESC"; $result = mysqli_query($this->connection, $q); return $this->mysqli_fetch_all($result); }