OSDN Git Service

BugTrack/2473 list plugin: Sort heading index
authorumorigu <umorigu@gmail.com>
Mon, 28 May 2018 15:15:05 +0000 (00:15 +0900)
committerumorigu <umorigu@gmail.com>
Mon, 28 May 2018 15:15:05 +0000 (00:15 +0900)
lib/func.php

index 4d04fb3..892ead2 100644 (file)
@@ -563,7 +563,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE)
                }
                $list[$head][$page] = $str;
        }
-       uksort($pages, 'strnatcmp');
+       uksort($list, 'strnatcmp');
 
        $cnt = 0;
        $arr_index = array();