components/policy/tools/template_writers/writers/reg_writer.py
def GetPolicySortingKey(self, policy):
    '''Extracts a sorting key from a policy. These keys can be used for
    list.sort() methods to sort policies.
    See TemplateWriter.SortPoliciesGroupsFirst for usage.
    '''
    is_list = policy['type'] in ('list', 'string-enum-list')
    # Lists come after regular policies.
    return (is_list, policy['name'])
Extracts a sorting key from a policy. These keys can be used for
    list.sort() methods to sort policies.
    See TemplateWriter.SortPoliciesGroupsFirst for usage.
    
Extracts a sorting key from a policy. These keys can be used for
list.sort() methods to sort policies.
Extracts a sorting key from a policy . These keys can be used for list . sort () methods to sort policies .
def GetPolicySortingKey(self, policy):
    is_list = policy['type'] in ('list', 'string-enum-list')
    return (is_list, policy['name'])
def GetPolicySortingKey ( self , policy ) : is_list = policy [ 'type' ] in ( 'list' , 'string-enum-list' ) return ( is_list , policy [ 'name' ] )
Extracts a sorting key from a policy.
Extracts a sorting key from a policy .
'''Extracts a sorting key from a policy. These keys can be used for
    list.sort() methods to sort policies.
    See TemplateWriter.SortPoliciesGroupsFirst for usage.
    ''' # Lists come after regular policies.
self
policy