def METHOD_NAME(s: str):
    '''Return a sorted list of the mapping keys in the string s.
    e.g. ['%(name)s', '%(age)i']
    See http://docs.python.org/library/stdtypes.html#string-formatting
    '''
    mapping_keys_re = re.compile(u'\\%\\([^\\)]*\\)\\w')
    return sorted(mapping_keys_re.findall(s))