Use a stable_sort to define the algorithm function property order.

This ensures that the relative ordering of equivalent values is preserved.

Refs #9781
Merge remote-tracking branch 'origin/bugfix/9781_python_function_argument_order'