Sort File findDirectories by alphabetical order

This commit is contained in:
Matt Lorimer 2019-12-23 17:15:02 +00:00 committed by Dillon-Brown
parent 9a1442f726
commit 13df8141bb

View file

@ -15,7 +15,7 @@ class File
/**
* Get all directories in a path
*
* @param $paths array of paths
* @param $paths array|string of paths
* @return array All directories in paths
*/
public function findDirectories($paths): array
@ -37,7 +37,9 @@ class File
}
}
return $directories;
asort($directories);
return array_values($directories);
}
/**