$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)) {