Using angular to turn a multi-dimensional array into a multi level list using php and usort
<p>I have been working on this a while. I see multi-level arrays in php are not that easy. Here is my code:</p>

<pre><code>Array
(
[0]=array(
   "level"=&gt;'Level1',
   "id"=&gt;1,
   "title"=&gt;"Home",
   "order"=&gt;"0"
    );
[1]=array(
    "level"=&gt;'Level1',
    "id"=&gt;"355",
    "title"=&gt;"About Us", 
    "order"=&gt;"21"
  );
 [2]=array(
    "level"=&gt;'Level1',
    "id"=&gt;"10",
    "title"=&gt;"Test",
    "order"=&gt;"58"
 );
[3]=array(
    "level"=&gt;'Level2',
    "id"=&gt;13,
    "title"=&gt;"Our Team",
    "order"=&gt;"11",
    "parent_id"=&gt;"355"
 );
  [4]=array(
    "level"=&gt;'Level2',
    "id"=&gt;12,
    "title"=&gt;"The In Joke",
    "order"=&gt;"12",
    "parent_id"=&gt;"355"
  );
  [5]=array(
    "level"=&gt;'Level2',
    "id"=&gt;11,
    "title"=&gt;"Our History",
    "order"=&gt;"13",
    "parent_id"=&gt;"355"
  ));
&gt; 



   1-Home
   2-about us
   3-Our Team
   4-The In Joke
   5-Our History
   6-Test   
</code></pre>

<p>i have multi-level parent child array and need to sort according to about result did not understand how i can use <code>usort()</code>.</p>
