I am trying to get an ordered array of index from another array in typescript.
Let me give examples: consider a function that receives an array of an