Sort the functions in the generated HTML output