port to std::sort

Authored by mlaurent on Mar 10 2019, 10:42 AM.