<p>In <a href="https://github.com/mlpack/mlpack/pull/691#discussion_r68069618">src/mlpack/methods/lsh/lsh_search_impl.hpp</a>:</p>
<pre style='color:#555'>&gt; @@ -339,12 +340,301 @@ void LSHSearch&lt;SortPolicy&gt;::BaseCase(const size_t queryIndex,
&gt;          referenceIndex, distance);
&gt;  }
&gt;  
&gt; +
&gt; +// Compare class for &lt;double, size_t&gt; pair, used in GetAdditionalProbingBins.
&gt; +class CompareGreater
&gt; +{
&gt; +  public:
&gt; +    bool operator()(
&gt; +        std::pair&lt;double, size_t&gt; p1,
&gt; +        std::pair&lt;double, size_t&gt; p2){
&gt; +      //only compare the double values
&gt; +      return p1.first &gt; p2.first;
&gt; +    }
</pre>
<p>You are right - I started implementing that, but then somewhere in the middle found a bug with my initial code so I never got around to throwing CompareGreater away.</p>

<p>Yes, in the very unlikely event where two scores are exactly the same, it doesn't really matter which one gets priority anyway - so ordering the second element is as arbitrary as anything else.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r68069618">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFPuFXZxZM1mQvrGc_u0sq6RRlduSks5qOU5qgaJpZM4IxQW5">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFK_KnS52JYYQqs8U-FjFwMiXusKGks5qOU5qgaJpZM4IxQW5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r68069618"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>