Fixing sorting and arithmetic issues with relevance voting.