Variant sorter added
Trying to fix so that one variant is not printed several times
Something wierd...