Try to keep the order of the data from the database instead of inverting it.