From 1a65d09f708f35e9c38e4e75564f5ac54b136f22 Mon Sep 17 00:00:00 2001 From: Remco Brenninkmeijer Date: Tue, 8 Jul 2014 19:52:28 +0200 Subject: [PATCH] Changed default sorting except for names. --- apps/files/js/filelist.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 3e311655c9..9f43045d50 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(); }