Sort by likes

Does anyone know of a way/plugin to provide sorting by the number of likes? For example in photos or vides it might be cool to be able to sort them from highest to lowest on the respective pages to see what others liked the most?

Any thoughts?