fix onway time
sort by id and add preorder_time column