Sorts an array of
PetscMPIInt in place in increasing order.
n - number of values
arr - array of
arr - sorted array of integers
If the array is less than 64 entries long
PetscSortMPIInt() is automatically used.
This function serves as an alternative to
PetscSortMPIInt(). While this function works for any array of
PetscMPIInt it is
significantly faster if the array is not totally random. There are exceptions to this and so it is highly
recommended that the user benchmark their code to see which routine is fastest.