Added separate function to sort pay amount ascending