Added the funtion that sorts takes based on the number of likes