44 |
|
} |
45 |
|
|
46 |
|
bool GoldenPattern::Result::operator < (const GoldenPattern::Result &o) const { |
47 |
< |
return (value() < o.value() ); |
47 |
> |
if ( *this && o) { |
48 |
> |
if (nMatchedTot() < o.nMatchedTot()) return true; |
49 |
> |
else if (nMatchedTot() == o.nMatchedTot() && value() < o.value()) return true; |
50 |
> |
else return false; |
51 |
> |
} |
52 |
> |
else if (o) {return true; } |
53 |
> |
else if (*this) { return false; } |
54 |
> |
else return false; |
55 |
> |
|
56 |
> |
// return (value() < o.value() ); |
57 |
> |
// return false; |
58 |
|
} |
59 |
|
|
60 |
|
GoldenPattern::Result::operator bool() const { |