sort raw output by time