Skip to content

Commit

Permalink
Properly sort SMQTK results
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna committed Jan 18, 2016
1 parent daeb2dc commit a20e53e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagespace_smqtk/web_client/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ girder.events.once('im:appload.after', function () {
search: function (image) {
return new imagespace.collections.ImageCollection(null, _.extend({
params: {
url: image.imageUrl
url: _.has(image, 'imageUrl') ? image.imageUrl : image.get('imageUrl')
},
supportsPagination: false,
comparator: function (image) {
return -image.get('im_distance');
return image.get('im_distance');
}
}, collectionArgs || {}));
}
Expand Down

0 comments on commit a20e53e

Please sign in to comment.