Grouped all functions and sorted by type.