control the Build Order

Even better would be to include a statement in the appropriate pde file that says that something is defined somewhere else:

extern int something;

This tells the current sketch that something is an int, and the the actual space for it is reserved somewhere else.

Then, the order of compiling doesn't matter.