std::sort, like most STL function can’t be just “available in the build environment”: these are templated functions that needs to be instantiated for C++ types, and then dispatch to a comparison operator that depends on the C++ types.
You would have better chance looking for C-library level functions, like qsort.