/** * {@inheritdoc} * * @link http://php.net/manual/en/function.ksort.php * @link http://php.net/manual/en/function.krsort.php */ public function sortKeys($order = SORT_ASC, $strategy = SORT_REGULAR) { parent::sortingKeys($this->elements, $order, $strategy); return $this; }
/** * {@inheritdoc} * * @link http://php.net/manual/en/function.ksort.php * @link http://php.net/manual/en/function.krsort.php */ public function sortKeys($order = SORT_ASC, $strategy = SORT_REGULAR) { $elements = $this->elements; parent::sortingKeys($elements, $order, $strategy); return new static($elements); }