Solved sorting by votes issue