Fix sorting of proposals by votes_in_tree