made a function to sort the dictionaries and find the most common results