Merge pull request #2764 from nextcloud/fix-groupshare-sharetimesort

[downstream] When grouping shares, sort by stime then id (#26777)
This commit is contained in:
Christoph Wurst 2016-12-19 21:40:42 +01:00 committed by GitHub
commit 084bddf8ae
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class MountProvider implements IMountProvider {
// sort by stime, the super share will be based on the least recent share
foreach ($tmp as &$tmp2) {
@usort($tmp2, function($a, $b) {
if ($a->getShareTime() < $b->getShareTime()) {
if ($a->getShareTime() <= $b->getShareTime()) {
return -1;
}
return 1;