summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/src
diff options
context:
space:
mode:
authorJan C. Borchardt <hey@jancborchardt.net>2020-10-07 17:18:27 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-10-13 17:29:52 +0200
commit0f2f857dc3b404b389a7c84b4336fa46b072738b (patch)
tree1492fe6a0d61af66a396875036f34365fb6870c8 /apps/files_trashbin/src
parent3b82c6cc849f9b0f23d15aebc8dc280fbbd4d8ef (diff)
downloadnextcloud-server-0f2f857dc3b404b389a7c84b4336fa46b072738b.tar.gz
nextcloud-server-0f2f857dc3b404b389a7c84b4336fa46b072738b.zip
Sort deleted files by most recently deleted first
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_trashbin/src')
-rw-r--r--apps/files_trashbin/src/filelist.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_trashbin/src/filelist.js b/apps/files_trashbin/src/filelist.js
index 8912789e752..4e7f0817802 100644
--- a/apps/files_trashbin/src/filelist.js
+++ b/apps/files_trashbin/src/filelist.js
@@ -71,7 +71,9 @@
var result = OCA.Files.FileList.prototype.initialize.apply(this, arguments)
this.$el.find('.undelete').click('click', _.bind(this._onClickRestoreSelected, this))
- this.setSort('mtime', 'desc')
+ // Sort by most recently deleted first
+ this.setSort('mtime', 'asc')
+
/**
* Override crumb making to add "Deleted Files" entry
* and convert files with ".d" extensions to a more