Signed-off-by: Orzu Ionut <orzu.ionut@gmail.com>
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;
}
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