Add missing functions to the .def and .edf files and sort existing entries.