Output should be key~value pairs, not value~key pairs

Switch the order to generate more sensicle names