src/Loaders/SortedLoader.php
/**
     * Loads, sorts and returns the files by using the passed glob pattern.
     *
     * If no pattern will be passed to the `load()` method, the files of
     * the actual directory using `getcwd()` will be returned.
     *
     * @param string|null $pattern The pattern to load the files from the filesystem
     *
     * @return \ArrayAccess The array with the data
     */
Loads, sorts and returns the files by using the passed glob pattern.
If no pattern will be passed to the `load()` method, the files of
the actual directory using `getcwd()` will be returned.

@param string|null $pattern The pattern to load the files from the filesystem

@return \ArrayAccess The array with the data
Loads sorts and returns the files by using the passed glob pattern . If no pattern will be passed to the ` load () ` method the files of the actual directory using ` getcwd () ` will be returned . @param string|null $pattern The pattern to load the files from the filesystem @return \ ArrayAccess The array with the data
public function load(string $pattern = null) : \ArrayAccess
    {
        $this->getSorterImpl()->sort($data = $this->getLoader()->load($pattern));
        return $data;
    }
public function load ( string $ pattern = null ) : \ ArrayAccess { $ this -> getSorterImpl ( ) -> sort ( $ data = $ this -> getLoader ( ) -> load ( $ pattern ) ) ; return $ data ; }
Loads, sorts and returns the files by using the passed glob pattern.
Loads sorts and returns the files by using the passed glob pattern .
// sort the files loaded by the parent loader instance // return the sorted files