Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
access.fs: Sort filenames case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
NHellFire committed Jan 11, 2015
1 parent 88b20ab commit d498b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/plugins/access.fs/class.fsAccessDriver.php
Expand Up @@ -1011,10 +1011,10 @@ public function switchAction($action, $httpVars, $fileVars)
closedir($handle);
$fullList = array("d" => array(), "z" => array(), "f" => array());

$nodes = scandir($path);
usort($nodes, "strcasecmp");
if (isSet($orderField) && isSet($orderDirection) && $orderField == "ajxp_label" && $orderDirection == "desc") {
$nodes = scandir($path, 1);
} else {
$nodes = scandir($path);
$nodes = array_reverse($nodes);
}
if (!empty($this->driverConf["SCANDIR_RESULT_SORTFONC"])) {
usort($nodes, $this->driverConf["SCANDIR_RESULT_SORTFONC"]);
Expand Down

0 comments on commit d498b7d

Please sign in to comment.