Sort dependency lists by name