Rearrange the sequence of functions.