The reason behind is that I use one of my generated files as input for another file. (I wrote a template that gives me the .edmx file for entity framework)
The order seems to be sort of random (i.e. I can't tell the order) but still not really random as the files are being generated in the same order every time.
I'd be thankful for any pointers!
/Torbjörn