Add an option to force flat order.