Sort the posts based on votes