Change order of api docs, functions before methods