reorder trace data union cases