1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Sort file names in scandir() with eio

Matches behavior of other drivers.
This commit is contained in:
Aaron Piotrowski 2018-10-28 09:38:35 -05:00
parent 36de5ba892
commit 25d8ef6e67
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

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