From 04040e55c05a59a028101ee3afb04721d08cfc0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 17 Jan 2013 01:57:55 +0000 Subject: [PATCH] Fixed sorting --- inc/modules/admin/what-stats_mods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/modules/admin/what-stats_mods.php b/inc/modules/admin/what-stats_mods.php index e274aae5e3..07ac5d2177 100644 --- a/inc/modules/admin/what-stats_mods.php +++ b/inc/modules/admin/what-stats_mods.php @@ -49,7 +49,7 @@ if ((getRequestElement('mod') == 'index') || (getRequestElement('mod') == 'login $mod = mapModuleToTable(getRequestElement('mod')); // Load module's detail statistic - $result = SQL_QUERY_ESC("SELECT `action`, `title`, `counter` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `what` != '' AND `what` IS NOT NULL ORDER BY `counter` DESC", + $result = SQL_QUERY_ESC("SELECT `action`, `title`, `counter` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `what` != '' AND `what` IS NOT NULL ORDER BY `counter` DESC, `action` ASC, `sort` ASC", array($mod), __FILE__, __LINE__); $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { -- 2.39.5