The variables you add are in the order how you add them
The variables provided by codeblocks (function parameters, local variables) are in the order how gdb provides them. I have no idea how this order is made.
@devs:
again some idea for a UI here?
Off topic: From all the posts you make it seems that you misuse the debugger as UI for your program?