SLING-5216 : changing the voting algorithm to use correct sorting by votingId not viewId, plus making the whole algorithm more straight forward and robust