diff --git a/eo/src/eoReduce.h b/eo/src/eoReduce.h index 4f7c2f34..31ecd776 100644 --- a/eo/src/eoReduce.h +++ b/eo/src/eoReduce.h @@ -54,8 +54,8 @@ template class eoTruncate : public eoReduce return; if (_newgen.size() < _newsize) throw std::logic_error("eoTruncate: Cannot truncate to a larger size!\n"); - - sort(_newgen.begin(), _newgen.end()); + + _newgen.sort(); _newgen.resize(_newsize); } };