#include <algorithm> // std::sort #include <vector> // std::vector std::vector<int> vec = {1,3,2}; // vec = [1, 3, 2] std::sort (vec.begin(), vec.end()); // vec = [1, 2, 3]