src/Helper/ToolboxFile.php
protected function sortByName($blnAscending = true)
    {
        $arrFiles = $this->foundFiles;

        if (!$arrFiles) {
            return array('files' => array(), 'source' => array());
        }

        \uasort($arrFiles, ($blnAscending) ? '\basename_natcasecmp' : '\basename_natcasercmp');

        return $this->remapSorting($arrFiles, $this->outputBuffer);
    }
protected function sortByName($blnAscending = true)
    {
        $arrFiles = $this->foundFiles;

        if (!$arrFiles) {
            return array('files' => array(), 'source' => array());
        }

        \uasort($arrFiles, ($blnAscending) ? '\basename_natcasecmp' : '\basename_natcasercmp');

        return $this->remapSorting($arrFiles, $this->outputBuffer);
    }
Sort by filename.

@param boolean $blnAscending Flag to determine if sorting shall be applied ascending (default) or descending.

@return array