]> _ Git - cubeextranet.git/commitdiff
wait #2119 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 28 Jun 2018 09:47:48 +0000 (09:47 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 28 Jun 2018 09:47:48 +0000 (09:47 +0000)
inc/ws/Util/html5/diaporama/class.ws.html5.links.php

index 5e07a2f2547649680b934374d11cb41fe5bb30af..48d4ec183b5c3650fb44a17f0ac7b863a8cebc44 100644 (file)
@@ -1613,6 +1613,7 @@ class slideshowLink extends normalLink
                                        continue;
                                }
                                $slides[] = ['path' => $afile->getPathname(), 'caption' => null];
+                               uasort($slides, [$this, '_orderSlidesByFilename']);
                        }
                }
 
@@ -1635,4 +1636,9 @@ class slideshowLink extends normalLink
                return $res;
        }
 
+
+       protected function _orderSlidesByFilename($a, $b)
+       {
+               return strcmp($a['path'], $b['path']);
+       }
 }