Sorts the top topElements of the given array in
descending order, using heap sort for sorting the values
in ascending order and then reversing the order of a
specified number of elements.
Sorts the top topElements of the given array in
descending order, using heap sort for sorting the values
in ascending order and then reversing the order of a
specified number of elements.