Updated duplicateOrder function to leave the original alone