sort by vote fix bug