for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stratadox\Sorting;
/**
* Sorts a collection of arrays.
*
* Objects that implement ArrayAccess are considered arrays for this purpose.
* @author Stratadox
* @package Stratadox\Sorting
*/
class ArraySorter extends ElementSorter
{
protected function valueFor($element, string $field)
return $element[$field];
}