sort — function for sorting in C++ standard library