Constructing out-of-equilibrium molecular assemblies that deviate from thermodynamic equilibrium is a central challenge in ...
Start at the beginning of the list. Compare the first value in the list with the next one up. If the first value is bigger, swap the positions of the two values. Move to the second value in the list.