Sort in C++ standard template library