Sort dependencies in the order they were eventually defined