reverse key,value order in the {foreach}