示例#1
0
 /**
  * {@inheritdoc}
  *
  * @link http://php.net/manual/en/function.arsort.php
  * @link http://php.net/manual/en/function.sort.php
  * @link http://php.net/manual/en/function.asort.php
  * @link http://php.net/manual/en/function.rsort.php
  */
 public function sort($order = SORT_ASC, $strategy = SORT_REGULAR, $preserveKeys = false)
 {
     parent::sorting($this->elements, $order, $strategy, $preserveKeys);
     return $this;
 }
示例#2
0
 /**
  * {@inheritdoc}
  *
  * @link http://php.net/manual/en/function.arsort.php
  * @link http://php.net/manual/en/function.sort.php
  * @link http://php.net/manual/en/function.asort.php
  * @link http://php.net/manual/en/function.rsort.php
  */
 public function sort($order = SORT_ASC, $strategy = SORT_REGULAR, $preserveKeys = false)
 {
     $elements = $this->elements;
     parent::sorting($elements, $order, $strategy, $preserveKeys);
     return new static($elements);
 }