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); } }