Suppose I have a vector of pair container:
vector <pair <int, int>> vp = {{1, 2}. {4, 4}, {2, 3}};
Now I want to sort this container in acsending order using sort function:
sort(vp.begin(), vp.end());
Output:
{{1, 2}, {2, 3}, {4, 4}}
Now my question is that how the function works in-depth.