lib/sequenceserver/blast/query.rb in sequenceserver-1.0.3 vs lib/sequenceserver/blast/query.rb in sequenceserver-1.0.4

- old
+ new

@@ -15,10 +15,11 @@ @title = rest.join(' ') super end def sort_hits_by_evalue! - @hits = hits.sort_by(&:evalue) + # change made here + @hits = hits.sort_by { |h| [h.evalue, h.score] } end attr_reader :id, :title end end