def _parse_and_sort_accept_header(accept_header):
return sorted([_split_into_mimetype_and_priority(x) for x in accept_header.split('<STR_LIT:U+002C>')],<EOL>key=lambda x: x[<NUM_LIT:1>], reverse=True)<EOL>
Parse and sort the accept header items.

    >>> _parse_and_sort_accept_header('application/json;q=0.5, text/*')
    [('text/*', 1.0), ('application/json', 0.5)]