Changed default sorting except for names.

This commit is contained in:
Remco Brenninkmeijer 2014-07-08 19:52:28 +02:00
parent 87adbf1c6e
commit 1a65d09f70
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}