looping params needs to be sorted since otherwise the formats can get out of order when looping to build the message