Reorder versions so that deprecated ones are last. Account for default not used when the variant exists.