reverse the order returned from influxdb