Sort parameters array

In other languages, the Dict/HashTable is un-ordered, better to sort the elements by keys.