From 25d8ef6e67b95d5249e0af7a80adce77657d16bb Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sun, 28 Oct 2018 09:38:35 -0500 Subject: [PATCH] Sort file names in scandir() with eio Matches behavior of other drivers. --- lib/EioDriver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/EioDriver.php b/lib/EioDriver.php index 1952ddb..0e3a14b 100644 --- a/lib/EioDriver.php +++ b/lib/EioDriver.php @@ -479,7 +479,9 @@ class EioDriver implements Driver if ($result === -1) { $deferred->fail(new FilesystemException(\eio_get_last_error($req))); } else { - $deferred->resolve($result["names"]); + $result = $result["names"]; + \sort($result); + $deferred->resolve($result); } }