src/Collection.php
public function sort(callable $callback)
    {
        $items = $this->items;

        usort($items, $callback);

        $col = new static ($this->type);
        $col->setItemsFromTrustedSource($items);

        return $col;
    }
public function sort(callable $callback)
    {
        $items = $this->items;

        usort($items, $callback);

        $col = new static ($this->type);
        $col->setItemsFromTrustedSource($items);

        return $col;
    }
{@inheritdoc}