Added function for calculating parameter ordering.

[#57443904]