summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-04-18 23:52:55 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-04-18 23:52:55 +0200
commit8080a1a5a7690d5901973c0bdc6f7f65768ddf1b (patch)
tree7fb8226ba54df0e13c4be59488fcbb2073015614 /lib/files.php
parent660e2c8102a51dd2c225224feab5aebdc02f623f (diff)
downloadnextcloud-server-8080a1a5a7690d5901973c0bdc6f7f65768ddf1b.tar.gz
nextcloud-server-8080a1a5a7690d5901973c0bdc6f7f65768ddf1b.zip
now my uppercase Wikileaks folder is correctly sorted below pr0n, like it should be
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files.php b/lib/files.php
index d0521168428..594b96a9c5e 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -79,8 +79,8 @@ class OC_FILES {
closedir($dh);
}
}
- ksort($dirs);
- ksort($files);
+ uksort($dirs, "strnatcasecmp");
+ uksort($files, "strnatcasecmp");
$content=array_merge($dirs,$files);
if($filesfound){
return $content;
@@ -401,4 +401,4 @@ class fakeDirStream{
}
}
stream_wrapper_register("fakedir", "fakeDirStream");
-?> \ No newline at end of file
+?>