Sort list_functions() output