Sorted posts by number of votes and limited the number of posts displayed to 20