reorder log string