Salt crystallization is a trivial example of how order spontaneously arise from chaos. Proteins folding is a quite complicated example. It has been written quite extensive in the literature about this subject for about 50 years now, and there exists theories that deals with what been observed. It is generally know as self-organization, and have implication in unsupervised machine learning and AI.
The subject of evolving was first treated extensively by Darwin in The Origin of Species, and subsequently been refined in detail by biologist for the past 150 years. What consider "devolving", in the sense to revert to a ancestral stage, the theory, as far as I understand it, forbids that to happen.