sort links and comments by rating