Actually that link doesn't explain implementation of sort but how to use the sort options that are defined by the language. They are for beginners in the sense that most beginners that need to sort don't have to implement their own. Just use std::sort or std::stable sort. Some containers have built in sort such as std::list which has its own member function version of a sort.