intent: Python: using a dict to speed sorting of a list of tuples
rewritten_intent: create a dictionary `list_dict` containing each tuple in list `tuple_list` as values and the tuple's first element as the corresponding key
snippet: list_dict = {t[0]: t for t in tuple_list}