Skip to content

SorterPipe

Properties

value

protected \Closure $value

ascending

protected string $ascending

Methods

__construct

public __construct(\Closure $value, string $ascending = 'asc'): mixed

Parameters:

Parameter Type Description
$value \Closure
$ascending string

process

public process(array $data): array

Parameters:

Parameter Type Description
$data array

sort

public sort(array $array, \Closure $value, string $ascending): array

Parameters:

Parameter Type Description
$array array
$value \Closure
$ascending string


Automatically generated on 2025-10-13