added secondary sorting, so we dont have to sort in the reduce job by hand