Reaarangement of sequences and list.