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