Tests interator order functions with different iterator types.