Sorting a 2 dimensional array in PHP
<p>wonder if anyone can help;</p>

<p>I have an a two dimensional array which I need to group by any common "job number" element;
Here's an example - I'm just playing with the idea at the moment, The $i is just a counter that iterates through the array results;</p>

<pre><code>$galleryItems[$i][0] = 'example title';//the title
 $galleryItems[$i][1] = 'example description';//description
 $galleryItems[$i][2] = 'the client';//client
 $galleryItems[$i][3] = '00000';//job number
</code></pre>

<p>Any ideas on how to group these toegther, eg so if had a number of 00000 job items it would stick all these toegther, and any 00001 would be group together etc.</p>

<p>Thanks</p>
