Sort the child wells according to insert index

This commit is contained in:
Joakim Hove
2019-07-31 13:28:24 +02:00
parent 24393cc2ef
commit 119cbc33f7

View File

@@ -2018,6 +2018,11 @@ namespace {
wells.push_back( this->getWell2( well_name, timeStep ));
}
}
std::sort(wells.begin(), wells.end(), [](const Well2& well1, const Well2& well2)
{
return well1.seqIndex() < well2.seqIndex();
});
return wells;
}
}