Each script file represents a class definition. All functions are class methods and all variables, constants and enums declared outside functions are class properties. Order of function or property definition doesn't matter at all. You can even have properties inbetween two methods etc. The only mandatory positions are "extends" declaration and "tool" keyword, which must stand at the beginning. Even class_name can be declared anywhere in the script. So you can order things in any way you see fit.
That said, there are stylistic conventions that Godot recommends. They are covered in style guide section in Godot docs (eps. Code Order sub-section).