(self)
return OrderedDict(sorted(items))
(key, value) tuples sorted by key
(key, value) tuples sorted by key
( key value ) tuples sorted by key
def dynamic_case_properties(self):
        """(key, value) tuples sorted by key"""
        json = self.to_json()
        wrapped_case = self
        if type(self) != CommCareCase:
            wrapped_case = CommCareCase.wrap(self._doc)

        items = [
            (key, json[key])
            for key in wrapped_case.dynamic_properties()
            if re.search(r'^[a-zA-Z]', key)
        ]
        return OrderedDict(sorted(items))
def dynamic_case_properties ( self ) : json = self . to_json ( ) wrapped_case = self if type ( self ) != CommCareCase : wrapped_case = CommCareCase . wrap ( self . _doc ) items = [ ( key , json [ key ] ) for key in wrapped_case . dynamic_properties ( ) if re . search ( r'^[a-zA-Z]' , key ) ] return OrderedDict ( sorted ( items ) )