title: Sorting php array by column in ascending order
body: <pre><code>  Array
  (
      [content_type] =&gt; Array
          (
              [0] =&gt; story
              [1] =&gt; delhi
              [2] =&gt; tez
          )
  
      [type] =&gt; Array
          (
              [0] =&gt; video_id
              [1] =&gt; subcategory
              [2] =&gt; story_id
          )
  
      [fetch_id] =&gt; Array
          (
              [0] =&gt; 32
              [1] =&gt; 32
              [2] =&gt; 2
          )
  
      [order] =&gt; Array
          (
              [0] =&gt; 6
              [1] =&gt; 4
              [2] =&gt; 5
          )
  
      [label] =&gt; Array
          (
              [0] =&gt; dsfs fdsf dsf sdf 
              [1] =&gt; dfsdfs
              [2] =&gt; sdfsdfsd
          )
  
      [link] =&gt; Array
          (
              [0] =&gt; fsd fsdf sdf
              [1] =&gt; fsdfsdfdsf
              [2] =&gt; fsdfdsfds
          )
  
      [record] =&gt; Array
          (
              [0] =&gt; 10
              [1] =&gt; 8
              [2] =&gt; 12
          )
  
  )
  </code></pre>
  
  <p>Above is the array I have to sort this array in the basis of order field and it should shorted all the fields accordingly like below example.</p>
  
  <pre><code>$arr['order'][0] = 4;
  $arr['order'][1] = 5;
  $arr['order'][2] = 6;
  
  $arr['type'][0] = 'subcategory';
  $arr['type'][1] = 'story_id';
  $arr['type'][2] = 'video_id';
  </code></pre>
  
  <p>and so on.....</p>