fix vote sorting