Reorder required packages.