Reorder logs according to sensor information