reorder trace