Closed cletusc closed 10 years ago
Client-side sorting needs to be converted to number. Order seen: 73
, 28
, 108
should be 108
, 73
, 28
...
@ view poll#showResults, L222-L223
a = $(a).find('span[data-bind*="votes.normal"]').text();
b = $(b).find('span[data-bind*="votes.normal"]').text();
should be
a = Number($(a).find('span[data-bind*="votes.normal"]').text());
b = Number($(b).find('span[data-bind*="votes.normal"]').text());
This would apply only to the
poll#showResults
page aspoll#showVersus
would be odd to sort.