Merge pull request #2764 from nextcloud/fix-groupshare-sharetimesort
[downstream] When grouping shares, sort by stime then id (#26777)
This commit is contained in:
commit
084bddf8ae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue