swap mapreduce() argument order. close #2082