st2client/st2client/commands/action.py
def _get_parameter_sort_value(self, parameters, name):
        """
        Return a value which determines sort order for a particular parameter.

        By default, parameters are sorted using "position" parameter attribute.
        If this attribute is not available, parameter is sorted based on the
        name.
        """
        parameter = parameters.get(name, None)

        if not parameter:
            return None

        sort_value = parameter.get('position', name)
        return sort_value

        Return a value which determines sort order for a particular parameter.

        By default, parameters are sorted using "position" parameter attribute.
        If this attribute is not available, parameter is sorted based on the
        name.
        
Return a value which determines sort order for a particular parameter.
By default, parameters are sorted using "position" parameter attribute.
If this attribute is not available, parameter is sorted based on the
name.
Return a value which determines sort order for a particular parameter . By default parameters are sorted using " position " parameter attribute . If this attribute is not available parameter is sorted based on the name .
def _get_parameter_sort_value(self, parameters, name):
        parameter = parameters.get(name, None)
        if not parameter:
            return None
        sort_value = parameter.get('position', name)
        return sort_value
def _get_parameter_sort_value ( self , parameters , name ) : parameter = parameters . get ( name , None ) if not parameter : return None sort_value = parameter . get ( 'position' , name ) return sort_value
Return a value which determines sort order for a particular parameter.
Return a value which determines sort order for a particular parameter .
"""
        Return a value which determines sort order for a particular parameter.

        By default, parameters are sorted using "position" parameter attribute.
        If this attribute is not available, parameter is sorted based on the
        name.
        """
self
parameters
name