title: Sort an array of objects, following the order of another array that has a value of the objects of the first array
body: <p>How could I sort an array of objects taking into account another array?</p>
  <p>Example:</p>
  <pre><code>let sortArray = [90, 1000, 4520]
  </code></pre>
  <pre><code>
  let notSortArrayObject = [ { id: 4520, value: 4 }, {id: 1000, value: 2}, {id: 90, value:10} ]
  </code></pre>
  <p>So I want an array equal notSortArrayObject but sortered by sortArray value</p>
  <pre><code>
  let sortArrayObject =[{id: 90, value:10} , {id: 1000, value: 2}, { id: 4520, value: 4 }]
  </code></pre>