I have a list that I need to sort by the most popular elements. Is there a method to accomplish that?
After I re-sort it, I also need to get rid of duplicates. I have an idea of a function in my mind for this but it seems inefficient, so are there built-in methods to help with this?