Added correct sorting for calculating the percentage change