Added separate function to sort pay amount descending