Port std::sort

Authored by mlaurent on Mar 21 2019, 3:35 PM.