code: public function sort(callable $callback)
      {
          $items = $this->items;
  
          usort($items, $callback);
  
          $col = new static ($this->type);
          $col->setItemsFromTrustedSource($items);
  
          return $col;
      }
docs: {@inheritdoc}