data.php - Fix that supports ordering by time. This allows the data matching for loop to work in order. (out of order sql data fixes will work)