At the moment the ant build.xml is responsible to create different filesets for each file types (pll, mmb, fmb, rdf) to preserve compile order.
The formsc task should take care of the compile order by itself.