sort temperature data