From b8ce5da958daf0520a03be1ca1b33068a2c5c498 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 23 Dec 2021 14:10:50 +0100 Subject: [PATCH] wip #4978 @0.25 --- src/Files/DirectorySortedIterator.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/Files/DirectorySortedIterator.php diff --git a/src/Files/DirectorySortedIterator.php b/src/Files/DirectorySortedIterator.php new file mode 100644 index 0000000..4d56c5c --- /dev/null +++ b/src/Files/DirectorySortedIterator.php @@ -0,0 +1,20 @@ +insert($item); + } + } + public function compare($b,$a) + { + return strcmp($a->getRealpath(), $b->getRealpath()); + } +} -- 2.39.5