Also changes the transformation pipeline code to sort and uniq the transformed group names at the end of the pipeline. This makes the results more predicable without changing the semantics.
Co-authored-by: Ryan Richard <richardry@vmware.com>