Order the dependencies