def sort_prefixes(orig, prefixes='<STR_LIT>'):
new = '<STR_LIT>'<EOL>for prefix in prefixes:<EOL><INDENT>if prefix in orig:<EOL><INDENT>new += prefix<EOL><DEDENT><DEDENT>return new<EOL>
Returns a sorted list of prefixes.

    Args:
        orig (str): Unsorted list of prefixes.
        prefixes (str): List of prefixes, from highest-priv to lowest.