Skip to content

Commit c8db9d9

Browse files
authored
Merge pull request #31391 from nextcloud/backport/29611/stable20
[stable20] Show most recently deleted files first in trash can
2 parents 3979ff5 + d7aa293 commit c8db9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_trashbin/lib/Trash/TrashManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function listTrashRoot(IUser $user): array {
4848
return array_merge($items, $backend->listTrashRoot($user));
4949
}, []);
5050
usort($items, function (ITrashItem $a, ITrashItem $b) {
51-
return $a->getDeletedTime() - $b->getDeletedTime();
51+
return $b->getDeletedTime() - $a->getDeletedTime();
5252
});
5353
return $items;
5454
}

0 commit comments

Comments
 (0)