Added reverse order function, tests pass