ValuesSorter
Read onlyYes
FinalYes
Sorts a column of extracted values preserving keys. Homogeneous columns are detected once and sorted by the engine without any userland comparator - a per-pair comparison callback is orders of magnitude slower than asort()/arsort(). Mixed columns fall back to the pairwise comparator.
Methods
- sort() : array<string|int, mixed>
Methods
sort()
public
static sort(array<string|int, mixed> $values, SortOrder $order) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
- $order : SortOrder
Return values
array<string|int, mixed> —the same key => value pairs, sorted, keys preserved