Merge pull request #913 from joakim-hove/sort-wells

Sort the child wells according to insert index
This commit is contained in:
Joakim Hove
2019-08-06 09:24:10 +02:00
committed by GitHub

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;
}
}