Add examples of new sorting functions and fix the typo mentioned in #355