GDScript Formatter can reorder your GDScript code for you!
Signals and variables first, then built-in Godot functions, then public and private custom functions, etc. It follows the official style guide.
It's open source, written in Rust, and runs fast.
Give it a try: https://www.gdquest.com/library/gdscript_formatter/