diff options
author | Remco Brenninkmeijer <requist1@starmail.nl> | 2014-07-08 19:52:28 +0200 |
---|---|---|
committer | Remco Brenninkmeijer <requist1@starmail.nl> | 2014-07-08 19:52:28 +0200 |
commit | 1a65d09f708f35e9c38e4e75564f5ac54b136f22 (patch) | |
tree | 8124b83c1565754932a741c8318b72175f60652b /apps | |
parent | 87adbf1c6e24402dc29b4166bfdac919303803ce (diff) | |
download | nextcloud-server-1a65d09f708f35e9c38e4e75564f5ac54b136f22.tar.gz nextcloud-server-1a65d09f708f35e9c38e4e75564f5ac54b136f22.zip |
Changed default sorting except for names.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 7 |
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(); } |