コード例 #1
0
ファイル: MutableArray.php プロジェクト: mrcoco/Arrayzy
 /**
  * {@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;
 }
コード例 #2
0
ファイル: ImmutableArray.php プロジェクト: mrcoco/Arrayzy
 /**
  * {@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);
 }