Sorts fuctions by usage