public function sortTypes(array &$types)
    {
        if (WF::is_numeric_array($types))
            return usort($types, [$this, 'compareTypes']);

        return uksort($types, [$this, 'compareTypes']);
    }
public function sortTypes(array &$types)
    {
        if (WF::is_numeric_array($types))
            return usort($types, [$this, 'compareTypes']);

        return uksort($types, [$this, 'compareTypes']);
    }
public function sortTypes ( array & $ types ) { if ( WF :: is_numeric_array ( $ types ) ) return usort ( $ types , [ $ this , 'compareTypes' ] ) ; return uksort ( $ types , [ $ this , 'compareTypes' ] ) ; }
Sort a list by their accept priority
@param array $types The list to sort. For arrays with numeric keys, the
values are expected to be types. Otherwise,
the keys are expected to be types. The array is
passed by reference.
@return bool True on success, false on failure
Sort a list by their accept priority