changeset 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 d598b2320878
children 782c1520984e
files mgtool.php
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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;
 }