Sorting an irregular php array
<p>I am trying to sort an irregular php array. It is irregular in that the structure is different than normal php arrays. I am usually able to sort arrays using usort, but the structure of this php array makes usort hard to use. Here's a basic structure of the array:</p>

<pre><code>            Array
(
    [id] =&gt; Array
        (
            [0] =&gt; 3220604
            [1] =&gt; 5341522
            [2] =&gt; 1234568144
            [3] =&gt; 11
        )

    [firstname] =&gt; Array
        (
            [0] =&gt; Sam
            [1] =&gt; Donald
            [2] =&gt; Keesh
            [3] =&gt; Eat
        )

    [lastname] =&gt; Array
        (
            [0] =&gt; Fisher
            [1] =&gt; Duck
            [2] =&gt; Smelley
            [3] =&gt; Me
        )

)
</code></pre>

<p>I am trying to sort by ID, but of course, if I use usort, it tries to sort by the highest order arrays, like id, first, and last. How would I sort an array with this kind of structure?</p>
