| @@ 454-464 (lines=11) @@ | ||
| 451 | /** |
|
| 452 | * {@inheritdoc} |
|
| 453 | */ |
|
| 454 | public function ukeySort(callable $sorter) |
|
| 455 | { |
|
| 456 | $values = $this->values; |
|
| 457 | $bool = uksort($values, $sorter); |
|
| 458 | ||
| 459 | if ($bool === false) { |
|
| 460 | throw new SortException('Sort failure'); |
|
| 461 | } |
|
| 462 | ||
| 463 | return new self($values); |
|
| 464 | } |
|
| 465 | ||
| 466 | /** |
|
| 467 | * {@inheritdoc} |
|
| @@ 484-494 (lines=11) @@ | ||
| 481 | /** |
|
| 482 | * {@inheritdoc} |
|
| 483 | */ |
|
| 484 | public function usort(callable $sorter) |
|
| 485 | { |
|
| 486 | $values = $this->values; |
|
| 487 | $bool = usort($values, $sorter); |
|
| 488 | ||
| 489 | if ($bool === false) { |
|
| 490 | throw new SortException('Sort failure'); |
|
| 491 | } |
|
| 492 | ||
| 493 | return new self($values); |
|
| 494 | } |
|
| 495 | ||
| 496 | /** |
|
| 497 | * {@inheritdoc} |
|
| @@ 529-539 (lines=11) @@ | ||
| 526 | /** |
|
| 527 | * {@inheritdoc} |
|
| 528 | */ |
|
| 529 | public function uassociativeSort(callable $sorter) |
|
| 530 | { |
|
| 531 | $values = $this->values; |
|
| 532 | $bool = uasort($values, $sorter); |
|
| 533 | ||
| 534 | if ($bool === false) { |
|
| 535 | throw new SortException('Sort failure'); |
|
| 536 | } |
|
| 537 | ||
| 538 | return new self($values); |
|
| 539 | } |
|
| 540 | ||
| 541 | /** |
|
| 542 | * {@inheritdoc} |
|