In a nutshell, what I'm trying to do is use the order of one array to follow the order of another...
For example... (Using ES6 React)
const orderArr = ["Daniel","Lucas","Gwen","Henry","Jasper"];
const nameArr = ["Gwen","Jasper","Daniel"];
to return
Daniel // first
Gwen // second
Jasper // third
so the new array would look like const newNameArr = ["Daniel","Gwen","Jasper"]; // following the order
orderArr is the ordered array I'd like to follow. So if any other arrays come about (nameArr) they should follow the order of orderArr.
Is this even possible?