mysql_query("SELECT * FROM users WHERE level = 7 ");
After querying the database, I have a list of level 7 users (installers). I use a while() loop to display all the installers. Each installer has a post code which, using PHP and GoogleMaps, is compared against the postcode of the currently logged in customer and returns the distance between the two post codes.
How can I sort this list of installers by the newly created "distance" variable?