Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoizey committed Jun 7, 2012
1 parent 021dc74 commit bb95d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Better500px.user.js
Expand Up @@ -226,8 +226,8 @@ var better500px = function () {
} else {
jQuery('.sortby .loading').removeClass('loading');
$('.photo_thumb').sortElements(function(a, b){
var aValue = $(a).data('stats').favs;
var bValue = $(b).data('stats').favs;
var aValue = $(a).data('stats').votes;
var bValue = $(b).data('stats').votes;
aValue = (aValue == 'N/A') ? 0 : parseInt(aValue, 10);
bValue = (bValue == 'N/A') ? 0 : parseInt(bValue, 10);
return aValue > bValue ? -1 : 1;
Expand Down

0 comments on commit bb95d75

Please sign in to comment.