#include #include #include #include int main() { std::vector v { 1, 5, 2, 4, 3 }; std::sort(begin(v), end(v)); for (auto const value: v) std::cout << value << std::endl; std::cout << std::endl; std::sort(begin(v), end(v), std::greater()); for (auto const value: v) std::cout << value << std::endl; }