Order of Operations [JS files in file]

If you were to use all of the DHTML Objects in one file, what order should the JS Files be in for it to work correctly. I consistantly run in to issues because they are not in the right order but now i am at a point where having them in one order fixes one thing and breaks another :imp: Hopefully someone can get a quick answer because there is no documentation on this, although you see them used in some of the products posted but the code is useless to my problem.

[code]

[/code]

Here you can find the correct order of dhtmlx js files:
docs.dhtmlx.com/doku.php?id=othe … mon_errors