Reorder install dependencies.