src/Collection/ArrayCollection.php
public function sortByDesc(callable $callback, $options = SORT_REGULAR): ArrayCollection
    {
        return $this->sortBy($callback, $options, true);
    }
public function sortByDesc(callable $callback, $options = SORT_REGULAR): ArrayCollection
    {
        return $this->sortBy($callback, $options, true);
    }
public function sortByDesc ( callable $ callback , $ options = SORT_REGULAR ) : ArrayCollection { return $ this -> sortBy ( $ callback , $ options , true ) ; }
Creates a descending sorted collection using values from a callback

Callback function should return a value for comparison

Callback signature:

<code>
function ($value, $key): mixed {}
</code>

@param callable $callback The callback function
@param int      $options  The sort options

@return ArrayCollection
Creates a descending sorted collection using values from a callback