diff --git a/src/OpenFOAM/primitives/Pair/PairI.H b/src/OpenFOAM/primitives/Pair/PairI.H index 2f489a0380..87e0d83f1c 100644 --- a/src/OpenFOAM/primitives/Pair/PairI.H +++ b/src/OpenFOAM/primitives/Pair/PairI.H @@ -68,7 +68,7 @@ inline Foam::Pair::Pair(const FixedList& lst) template inline Foam::Pair::Pair(const T& f, const T& s, const bool doSort) { - if (doSort && f < s) + if (doSort && s < f) { first() = s; second() = f; @@ -88,7 +88,6 @@ inline Foam::Pair::Pair(const FixedList& lst, const bool doSort) {} - template inline Foam::Pair::Pair(Istream& is) :