reverses the sequence of collection passed