src/Filesystem/Adapter/AbstractFtpAdapter.php
protected function sortListing(array $result)
    {
        $compare = function ($one, $two) {
            return \strnatcmp($one['path'], $two['path']);
        };

        \usort($result, $compare);

        return $result;
    }
protected function sortListing(array $result)
    {
        $compare = function ($one, $two) {
            return \strnatcmp($one['path'], $two['path']);
        };

        \usort($result, $compare);

        return $result;
    }
protected function sortListing ( array $ result ) { $ compare = function ( $ one , $ two ) { return \ strnatcmp ( $ one [ 'path' ] , $ two [ 'path' ] ) ; } ; \ usort ( $ result , $ compare ) ; return $ result ; }
Sort a directory listing.

@param array $result

@return array sorted listing
Sort a directory listing .