Sets all periods.

Reverses the results if the data is ascending.