BUG: Pair sort on construct did the opposite (fixes #1701)

This commit is contained in:
Mark Olesen
2020-05-11 16:17:32 +02:00
parent 9abf648acf
commit e0145b8555

View File

@ -68,7 +68,7 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst)
template<class T>
inline Foam::Pair<T>::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<T>::Pair(const FixedList<T, 2>& lst, const bool doSort)
{}
template<class T>
inline Foam::Pair<T>::Pair(Istream& is)
: