From 0f2f857dc3b404b389a7c84b4336fa46b072738b Mon Sep 17 00:00:00 2001 From: "Jan C. Borchardt" Date: Wed, 7 Oct 2020 17:18:27 +0200 Subject: Sort deleted files by most recently deleted first Signed-off-by: Jan C. Borchardt Signed-off-by: npmbuildbot[bot] Signed-off-by: Morris Jobke --- apps/files_trashbin/src/filelist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/files_trashbin/src') 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 -- cgit v1.2.3