order the dependencies.