I am trying to sort the mysql data by my calculated value. I know rsort(), sort(), however, I cannot sort them individual outside the foreach because it will not be consistent. I have three arrays need to be in consistent when I only want to sort them by the percentage. How can I do that? Appreciate.I am trying to sort the mysql data by my calcul