sorting list of dict by value in list code example
Example: sort dict based on other list
orted_dict = dict()
sorted_list = list((i, unsorted_dict.get(i)) for i in ordination
orted_dict = dict()
sorted_list = list((i, unsorted_dict.get(i)) for i in ordination