a recursive function that returns all of the unique dependencies, and sub-dependencies of a module, sorted alphabetically.