Retrieves domains in order of dependencies. Zero element of an array
does not depend on any other inside system. Last one depends
on all of them. Note that domain may in fact not depend on all or any
of the previous ones. Still the order of domains appearance will
become an order of generation/buid/deployment etc..