Reorganising library functions to be alphabetical.