19declare(strict_types=1);
47 $sorted = array_reverse($sorted);
49 foreach ($sorted as $identification) {
50 $collection->
add($identification);
Class ResourceCollection.
getResourceIdentifications()
add(ResourceIdentification $identification)
Class AbstractBaseSorter.
__construct(protected ResourceBuilder $resource_builder, protected int $direction=SORT_ASC)
sortResourceIdentification(array $identifications)
sort(ResourceCollection $collection)
Interface CollectionSorter.