コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function sortOn($fn, $order = Sort\ASC)
 {
     return new self(Sort\comparison($this->items, $fn, $order));
 }
コード例 #2
0
ファイル: Collection.php プロジェクト: graze/data-structure
 /**
  * {@inheritdoc}
  */
 public function sortOn($fn, $order = Sort\ASC)
 {
     $this->items = Sort\comparison($this->items, $fn, $order);
     return $this;
 }