arsort

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array in descending order and maintain index association
<?php arsort(array &$array, int $flags = SORT_REGULAR): true
<?php     {

        $items = $this->items;



        arsort($items, $options);



        return new static($items);

    }
<?php             $results[$key] = $callback($value, $key);

        }



        $descending ? arsort($results, $options)

            : asort($results, $options);
<?php                 }




                arsort($usedLicenses, SORT_NUMERIC);



                $rows = array();

                foreach ($usedLicenses as $usedLicense => $numberOfDependencies) {