Sorting of functions ready