Added method inOrder() as well.