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:
parent
36de5ba892
commit
25d8ef6e67
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user