sorted comments

sorted comments the way the functions are called