title: PHP multiple array sort
body: <p>I need to sort multiple array by one value in array. Unfortunately, I can not sort this inside the database. I can only get array like this.</p>
  
  <p>My Array look like :</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [id] =&gt; 10913
              [name] =&gt; NAME 1
              [logo_img] =&gt; 28361bd6114a32daafcf150da5ee1d33.jpeg
              [has_frame] =&gt; t
              [weight] =&gt; 0
          )
  
      [1] =&gt; Array
          (
              [id] =&gt; 10902
              [name] =&gt; Name 2
              [logo_img] =&gt; d0642d5efeabe8b861f2f32fa17f35b3.jpeg
              [has_frame] =&gt; t
              [weight] =&gt; 4
          )
  
      [2] =&gt; Array
          (
              [id] =&gt; 8887
              [name] =&gt; Some name 3
              [logo_img] =&gt; 12e47533604438bf390d69218434b630.jpeg
              [has_frame] =&gt; f
              [weight] =&gt; 0
          )
  
      [3] =&gt; Array
          (
              [id] =&gt; 49
              [name] =&gt; Some name 4
              [logo_img] =&gt; 5971148b049c5bb0b6e402a1de1836ef.jpeg
              [has_frame] =&gt; t
              [weight] =&gt; 0
          )
  
      [4] =&gt; Array
          (
              [id] =&gt; 10871
              [name] =&gt; name2
              [logo_img] =&gt; 7dcc1a6058a81b4e45de5f2274025907.jpeg
              [has_frame] =&gt; t
              [weight] =&gt; 0
          )
  
      [5] =&gt; Array
          (
              [id] =&gt; 1880
              [name] =&gt; name 4
              [logo_img] =&gt; dc05764ea71425a4a653b81997e7d929.jpeg
              [has_frame] =&gt; f
              [weight] =&gt; 0
          )
  
      [6] =&gt; Array
          (
              [id] =&gt; 9678
              [name] =&gt; name 33
              [logo_img] =&gt; 8ded98244a6928d5179398fa9d3b59bc.jpeg
              [has_frame] =&gt; t
              [weight] =&gt; 5
          )
  
      [7] =&gt; Array
          (
              [id] =&gt; 2880
              [name] =&gt; name r
              [logo_img] =&gt; 09876329a5ac2a84e9f83923c75e780c.jpeg
              [has_frame] =&gt; f
              [weight] =&gt; 0
          )
  
      [8] =&gt; Array
          (
              [id] =&gt; 8265
              [name] =&gt; name 5
              [logo_img] =&gt; 487ed3c676666e380f813f5f1a9fb040.jpeg
              [has_frame] =&gt; t
              [weight] =&gt; 1
          )
  
  )
  </code></pre>
  
  <p>I need to order this array by weight element DESC. Is it possible? </p>