If you right-click on a file, you can change its compile weight under the properties to force it to compile sooner/later. (Files of the same weight are compiled alphabetically.)
However, as others have already mentioned, the problem is most likely from something else (compile order rarely matters within a target).