bug in length calculation with >1 text params
looping params needs to be sorted since otherwise the formats can get out of order when looping to build the message
Merge pull request #17 from adamdruppe/master

bugs