I have something like a vocabulary list with every vocabulary containing a number and the word. I have the same list of vocabulary but unsorted and in another language, the numbers match the meaning. So the same word has in both languages the same number. How can I match both vocabularys together and being in the same order of the main language? Example:
Input:
English Array (sorted) German Array (unsorted)
74 Apple 6 Auto
6 car 564 Zug
564 train 74 Apfel
Output: the German Array is sorted in the same way as the English Array
74 Apple 74 Apfel
6 car 6 Auto
564 train 564 Zug
Help is much appreciated. Thank you :)