diff --git a/moses/src/Hypothesis.h b/moses/src/Hypothesis.h index 485922531..24be9b801 100644 --- a/moses/src/Hypothesis.h +++ b/moses/src/Hypothesis.h @@ -314,10 +314,7 @@ class HypothesisRecombinationOrderer public: bool operator()(const Hypothesis* hypoA, const Hypothesis* hypoB) const { - if(hypoA->RecombineCompare(*hypoB) != 0) - return (hypoA->GetId() < hypoB->GetId()); - else - return 0; + return (hypoA->RecombineCompare(*hypoB) < 0); } };