changeset 37:99dc0843d7df

Fix sorting of albums to match image sorting.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 May 2016 13:44:13 +0300
parents 4f6eda86b9a2
children 3f16beb79f9e
files mgtool.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)