Sorting in C++ using std::sort()

With Standard template library available in C++, many functions are easier to implement. One of them present is sort function as well which we are going to discuss.


This is a companion discussion topic for the original entry at http://iq.opengenus.org/sort-in-cpp-stl/