Reorder optionalParams array alphabetically