mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Show most recently deleted files first in trash can
Signed-off-by: Orzu Ionut <orzu.ionut@gmail.com>
This commit is contained in:
parent
c43c2409a6
commit
3d6902103a
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ class TrashManager implements ITrashManager {
|
|||
return array_merge($items, $backend->listTrashRoot($user));
|
||||
}, []);
|
||||
usort($items, function (ITrashItem $a, ITrashItem $b) {
|
||||
return $a->getDeletedTime() - $b->getDeletedTime();
|
||||
return $b->getDeletedTime() - $a->getDeletedTime();
|
||||
});
|
||||
return $items;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@
|
|||
this.$el.find('.undelete').click('click', _.bind(this._onClickRestoreSelected, this))
|
||||
|
||||
// Sort by most recently deleted first
|
||||
this.setSort('mtime', 'asc')
|
||||
this.setSort('mtime', 'desc')
|
||||
|
||||
/**
|
||||
* Override crumb making to add "Deleted Files" entry
|
||||
|
|
|
|||
Loading…
Reference in a new issue