diff mgtool.php @ 325:9a4297e59a40

Adjust sorting so that if timestamp difference is 0, compare names.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 11 May 2020 05:06:19 +0300
parents 2f4e3e458714
children 782c1520984e
line wrap: on
line diff
--- a/mgtool.php	Thu Apr 09 13:09:01 2020 +0300
+++ b/mgtool.php	Mon May 11 05:06:19 2020 +0300
@@ -808,10 +808,10 @@
       isset($a["base"]))
     $cres = 1;
   else
-  if (isset($a["base"]) && isset($b["base"]))
+    $cres = 0;
+
+  if ($cres == 0 && isset($a["base"]) && isset($b["base"]))
     $cres = strcmp($b["base"], $a["base"]);
-  else
-    $cres = 0;
 
   return $cres;
 }