I have 2 javascript arrays:

```
const arr1 = ['one', 'two', 'three', 'four', 'five', 'six'];
const arr2 = ['five', 'six', 'four', 'three', 'one', 'two'];

```

PS- I cant change/control order of 'arr1'

My question is how can I make the order of the items of 'arr2' match that of 'arr1'.

I have been thinking it might look something like:

```
//1. Some kind of function to get index of all items
const items = (item) => item === item; 
const arr3 = arr1.findIndex(items);

//2. Then think I need to get the values of arr2 using ([Array.values()][1])**
const arr2vals = arr2.values();

//3. Then some kind of calculation that matches the values, this is where I really struggle more, but weak at best lol!
arr3.filter(value => arr2vals.includes(value))

```

\*\* Ref: [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values)