Material Function Inputs/Outputs can be sorted relative to other inputs/outputs by setting their Sort Priority.

Say Thanks project: https://cutt.ly/tnks