/** * Sort that container out! */ void SortContainer_(Container& container, Environment& environment, Element function) { std::vector<Element>& elements = container.Elements(); std::sort( elements.begin() , elements.end() , FunctionSortFunctor( function , environment )); }