CopyToArrayAndCheckOrder