From b70715173f6a76ed3c03adceba8bd795a13e40cc Mon Sep 17 00:00:00 2001 From: quix0r 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.2