Sort dependencies by name