mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Changed default sorting except for names.
This commit is contained in:
parent
87adbf1c6e
commit
1a65d09f70
1 changed files with 6 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue