diff options
Diffstat (limited to 'phpBB/includes/acp/acp_ranks.php')
| -rw-r--r-- | phpBB/includes/acp/acp_ranks.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_ranks.php b/phpBB/includes/acp/acp_ranks.php index e0f6aa9a0b..08270a7221 100644 --- a/phpBB/includes/acp/acp_ranks.php +++ b/phpBB/includes/acp/acp_ranks.php @@ -143,11 +143,12 @@ class acp_ranks $db->sql_freeresult($result); $imglist = filelist($phpbb_root_path . $config['ranks_path'], ''); - $edit_img = $filename_list = ''; foreach ($imglist as $path => $img_ary) { + sort($img_ary); + foreach ($img_ary as $img) { $img = $path . $img; @@ -202,7 +203,7 @@ class acp_ranks $sql = 'SELECT * FROM ' . RANKS_TABLE . ' - ORDER BY rank_min ASC, rank_special ASC, rank_title ASC'; + ORDER BY rank_special DESC, rank_min ASC, rank_title ASC'; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) |
