| @@ 465-475 (lines=11) @@ | ||
| 462 | /** |
|
| 463 | * {@inheritdoc} |
|
| 464 | */ |
|
| 465 | public function ukeySort(callable $sorter) |
|
| 466 | { |
|
| 467 | $values = $this->values; |
|
| 468 | $bool = uksort($values, $sorter); |
|
| 469 | ||
| 470 | if ($bool === false) { |
|
| 471 | throw new SortException('Sort failure'); |
|
| 472 | } |
|
| 473 | ||
| 474 | return new self($values); |
|
| 475 | } |
|
| 476 | ||
| 477 | /** |
|
| 478 | * {@inheritdoc} |
|
| @@ 495-505 (lines=11) @@ | ||
| 492 | /** |
|
| 493 | * {@inheritdoc} |
|
| 494 | */ |
|
| 495 | public function usort(callable $sorter) |
|
| 496 | { |
|
| 497 | $values = $this->values; |
|
| 498 | $bool = usort($values, $sorter); |
|
| 499 | ||
| 500 | if ($bool === false) { |
|
| 501 | throw new SortException('Sort failure'); |
|
| 502 | } |
|
| 503 | ||
| 504 | return new self($values); |
|
| 505 | } |
|
| 506 | ||
| 507 | /** |
|
| 508 | * {@inheritdoc} |
|
| @@ 540-550 (lines=11) @@ | ||
| 537 | /** |
|
| 538 | * {@inheritdoc} |
|
| 539 | */ |
|
| 540 | public function uassociativeSort(callable $sorter) |
|
| 541 | { |
|
| 542 | $values = $this->values; |
|
| 543 | $bool = uasort($values, $sorter); |
|
| 544 | ||
| 545 | if ($bool === false) { |
|
| 546 | throw new SortException('Sort failure'); |
|
| 547 | } |
|
| 548 | ||
| 549 | return new self($values); |
|
| 550 | } |
|
| 551 | ||
| 552 | /** |
|
| 553 | * {@inheritdoc} |
|