Sort by dependency conf, then name