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