Simple Dependency Resolution and Sorting