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