Sort received sensor data by timestamp before storing