diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2018-01-11 00:21:58 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2018-01-11 00:21:58 +0000 |
commit | 1c52df7ccd8d23240e766a6f7c6e7f92fbc866b0 (patch) | |
tree | 9b49ce3a98625e1901f242c67447c60dabea94fb /scripts/pagelist.php | |
parent | ec95b833c2f209114a704563c5be2fd80b813362 (diff) | |
download | pmwiki.svn-1c52df7ccd8d23240e766a6f7c6e7f92fbc866b0.tar.bz2 |
Fix a Pagelists order bug, reported by Chuck Goldstein
git-svn-id: svn://pmwiki.org/pmwiki/trunk@3369 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/pagelist.php')
-rw-r--r-- | scripts/pagelist.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/pagelist.php b/scripts/pagelist.php index c9860430..c7b15d42 100644 --- a/scripts/pagelist.php +++ b/scripts/pagelist.php @@ -133,8 +133,9 @@ SDVA($PageListFilters, array( )); function CorePageListSorts($x, $y, $o) { - global $PCache; - if($o == 'title') $o = '=title'; + global $PCache; + if($o == 'title') + return @strcasecmp($PCache[$x]['=title'],$PCache[$y]['=title']); return @($PCache[$x][$o]-$PCache[$y][$o]); } foreach(array('random', 'size', 'time', 'ctime', 'title') as $o) |