String Array comparision and sorting
<p>First off, i'd like to say that my programming knowledge is very basic and got a learn as you go style. So please bear with me if i sound stupid.</p>

<p>So i have a multi dimensional string array, a part of which is:</p>

<pre><code>X       Y

4,1 Adelaide
4,2 Interlagos
4,3 Sakhir
4,4 Hungaroring
4,5 Estoril
4,6 Barcelona
4,7 Silverstone
4,8 Mugello
4,9 Hockenheim
4,10 Monte Carlo
</code></pre>

<p>In the above table, X and Y are the 2 dimensions of the array.</p>

<p>Now i have another string array with elements from X dimension of the above array in unsorted fashion. For example,</p>

<pre><code>4,6
5,15
3,7
10,12
</code></pre>

<p>etc...</p>

<p>Now what i want to do is write a code which looks into array #2 and assigns a corresponding element from dimension Y of the array #1.</p>

<p>For example, when the code encounters 4,6 in array #2, i want the code to assign the corresponding value which is Barcelona.</p>

<p>Just the basic snippet or algorithm is what i'm looking for. I'll do the rest myself.</p>

<p>Thanks in advance!</p>
