diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-04-18 23:52:55 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-04-18 23:52:55 +0200 |
commit | 8080a1a5a7690d5901973c0bdc6f7f65768ddf1b (patch) | |
tree | 7fb8226ba54df0e13c4be59488fcbb2073015614 /lib/files.php | |
parent | 660e2c8102a51dd2c225224feab5aebdc02f623f (diff) | |
download | nextcloud-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.php | 6 |
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 +?> |