Project

General

Profile

Bug #71973 » 71973.patch

Alexander Jahn, 2017-08-02 13:57

View differences:

typo3/sysext/core/Classes/Resource/FileRepository.php (revision )
}
}
// sorting might have changed due to workspace overlay
uasort(
$itemList,
function (FileReference $a, FileReference $b) {
$sortA = $a->getReferenceProperty('sorting_foreign');
$sortB = $b->getReferenceProperty('sorting_foreign');
if ($sortA == $sortB) {
return 0;
}
return ($sortA < $sortB) ? -1 : 1;
}
);
return $itemList;
}
(2-2/2)