call the method registry.tags_available, sort the result and join it into a string, separate by newlines, write it to self.stdout.
self . stdout . write ( '\n' . join ( sorted ( registry . tags_available ( ) ) ) )