# HG changeset patch # User Matti Hamalainen # Date 1462272253 -10800 # Node ID 99dc0843d7df5c17452ec680e3678e56fc06c919 # Parent 4f6eda86b9a20e553a8c3123ee351c700f596a5c Fix sorting of albums to match image sorting. diff -r 4f6eda86b9a2 -r 99dc0843d7df mgtool.php --- a/mgtool.php Mon May 02 12:20:41 2016 +0300 +++ b/mgtool.php Tue May 03 13:44:13 2016 +0300 @@ -354,7 +354,7 @@ } uasort($images, "mgSortFunc"); - ksort($albums); + krsort($albums); // Choose gallery album image if (count($images) > 0)