const elementeSelected = ["a", "b"];
const allElements = ["m", "s", "e", "r", "q", "d", "a", "b", "c"];
// result allElements = ["a", "b", "m", "s", "e", "r", "q", "d", "c"];
https://codesandbox.io/s/distracted-lederberg-yji13f?file=/src/index.js:0-175
I tried to reorder the items form allElement. I want the items from elementeSelected to be move from their position in allElements to the first position.