title: Array Sort by gender
body: <p>my list array</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [id] =&gt; 1000044375809533
              [likes] =&gt; 10
              [comments] =&gt; 6
              [posts] =&gt; 41
              [gender] =&gt; female
          )
  
      [1] =&gt; Array
          (
              [id] =&gt; 1000043758049533
              [likes] =&gt; 10
              [comments] =&gt; 6
              [posts] =&gt; 41
              [gender] =&gt; male
          )
  
      [2] =&gt; Array
          (
              [id] =&gt; 1000040382928633
              [likes] =&gt; 4
              [comments] =&gt; 0
              [posts] =&gt; 0
              [gender] =&gt; female
          )
  
      [3] =&gt; Array
          (
              [id] =&gt; 1000003829428633
              [likes] =&gt; 4
              [comments] =&gt; 0
              [posts] =&gt; 0
              [gender] =&gt; male
          )
  )
  </code></pre>
  
  <p>How do I set the list again by gender ?</p>
  
  <p>And then sort by "total = likes + comments + posts"</p>
  
  <p>total = 10
  gender = male</p>
  
  <p>total = 8
  gender = male</p>
  
  <p>total 10
  gender = female</p>
  
  <p>total = 7
  gender = female</p>