From 337acb2b7c71230a52e33d91ef4a627cf4a96eb3 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 28 Jun 2018 09:47:48 +0000 Subject: [PATCH] wait #2119 @0.5 --- inc/ws/Util/html5/diaporama/class.ws.html5.links.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/ws/Util/html5/diaporama/class.ws.html5.links.php b/inc/ws/Util/html5/diaporama/class.ws.html5.links.php index 5e07a2f25..48d4ec183 100644 --- a/inc/ws/Util/html5/diaporama/class.ws.html5.links.php +++ b/inc/ws/Util/html5/diaporama/class.ws.html5.links.php @@ -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']); + } } -- 2.39.5