Sort parameters array

In other languages, the Dict/HashTable is un-ordered, better to sort the elements by keys.
Merge pull request #2 from kukat/patch-1

Sort parameters array