If I have a list,

```
int[] ints = { 4, 2, 6, 5 };

```

and I sort the list using `Array.Sort(ints)`, and I've got another array,

```
int[] i = { 1, 2, 4, 5, 6, 8, 12 };

```

how do I check that the sorted array, `ints` is contained within `i`?

If the array has extra elements,

```
int[] ints = { 4, 2, 6, 3, 5 };

```

that are not part of `i` then this should return false, unlike with [this solution](https://stackoverflow.com/questions/11139419/how-can-we-check-whether-one-array-contains-one-or-more-elements-of-another-arra):

> 
> Here is a Linq solution that should give you what you need:
> 
> 
> 
> ```
> names.Any(x => subnames.Contains(x))
> 
> ```
> 
>