The second law is generally considered as a dissipative law, whereas, many evolution processes show that order could arise spontaneously, in my opinion, the second law itself contains the mechanism of evolution.
In the fundamental equation of the second law,
diS=ΣdiSj ≥0,
here diS is the total entropy production, and diSj is the partial differential of diS in process j.
The equation does not require each of diSj≥0, it only requires that the total entropy production is positive definite, but the partial differentials of which can be less than zero. In the case diSj=k