fix sort by vote insertion