i would assume - based on the order of folders i submitted to getFiles - that site_config/custom/example.com is used, but instead (because of sorting) vendor/j0k3r/graby-site-config/example.com would be used.
by just getting rid of the sorting (which imho isn't needed anyway) the files would be returned correctly
Found files are currently sorted by name (https://github.com/j0k3r/graby-site-config/blob/master/src/Files.php#L24) that kind of prevents you from overwriting config files which are provided with cusom ones.
Example:
Assume we have the following structure (and example.com would exist in this repository as well):
i would assume - based on the order of folders i submitted to
getFiles
- thatsite_config/custom/example.com
is used, but instead (because of sorting)vendor/j0k3r/graby-site-config/example.com
would be used.by just getting rid of the sorting (which imho isn't needed anyway) the files would be returned correctly