summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorRemco Brenninkmeijer <requist1@starmail.nl>2014-07-08 19:52:28 +0200
committerRemco Brenninkmeijer <requist1@starmail.nl>2014-07-08 19:52:28 +0200
commit1a65d09f708f35e9c38e4e75564f5ac54b136f22 (patch)
tree8124b83c1565754932a741c8318b72175f60652b /apps/files/js
parent87adbf1c6e24402dc29b4166bfdac919303803ce (diff)
downloadnextcloud-server-1a65d09f708f35e9c38e4e75564f5ac54b136f22.tar.gz
nextcloud-server-1a65d09f708f35e9c38e4e75564f5ac54b136f22.zip
Changed default sorting except for names.
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 3e311655c91..9f43045d502 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -369,7 +369,12 @@
this.setSort(sort, (this._sortDirection === 'desc')?'asc':'desc');
}
else {
- this.setSort(sort, 'asc');
+ if ( sort == 'name' ) { //default sorting of name is opposite to size and mtime
+ this.setSort(sort, 'asc');
+ }
+ else {
+ this.setSort(sort, 'desc');
+ }
}
this.reload();
}