fixed partial vote bug, and sorting