@@ 461-471 (lines=11) @@ | ||
458 | /** |
|
459 | * {@inheritdoc} |
|
460 | */ |
|
461 | public function ukeySort(callable $sorter) |
|
462 | { |
|
463 | $values = $this->values; |
|
464 | $bool = uksort($values, $sorter); |
|
465 | ||
466 | if ($bool === false) { |
|
467 | throw new SortException('Sort failure'); |
|
468 | } |
|
469 | ||
470 | return new self($values); |
|
471 | } |
|
472 | ||
473 | /** |
|
474 | * {@inheritdoc} |
|
@@ 491-501 (lines=11) @@ | ||
488 | /** |
|
489 | * {@inheritdoc} |
|
490 | */ |
|
491 | public function usort(callable $sorter) |
|
492 | { |
|
493 | $values = $this->values; |
|
494 | $bool = usort($values, $sorter); |
|
495 | ||
496 | if ($bool === false) { |
|
497 | throw new SortException('Sort failure'); |
|
498 | } |
|
499 | ||
500 | return new self($values); |
|
501 | } |
|
502 | ||
503 | /** |
|
504 | * {@inheritdoc} |
|
@@ 536-546 (lines=11) @@ | ||
533 | /** |
|
534 | * {@inheritdoc} |
|
535 | */ |
|
536 | public function uassociativeSort(callable $sorter) |
|
537 | { |
|
538 | $values = $this->values; |
|
539 | $bool = uasort($values, $sorter); |
|
540 | ||
541 | if ($bool === false) { |
|
542 | throw new SortException('Sort failure'); |
|
543 | } |
|
544 | ||
545 | return new self($values); |
|
546 | } |
|
547 | ||
548 | /** |
|
549 | * {@inheritdoc} |