sort builddep and dependencies for `depends` subcommand ouput