how to do php 4 dimension array sorting
<p>Cassandra Json format looks like this</p>

<pre><code>    "recommendResult":[{
       "mediaId":"",
       "mediaEntry":[{
           "user1":{
               "name":"sooin",
               "rating":"3",
               "views":"2",
               "like":"ture",
               "comment":"good"
           },
           "user2":{
               "name":"sara",
               "rating":"1",
               "views":"4",
               "like":"ture",
               "comment":"good!"
           }
       }],
       "view":"4",
       "rating":"4",
       "like":"10",
       "smallUrl":"/photo/smallUrl",
       "largeUrl":"/photo/largeUrl",      
       "title":"aaaa"                  
    }]
</code></pre>

<p>Here is my php code</p>

<pre><code>$rows=$column_family-&gt;get_range();
$count=0;

    foreach($rows as $key =&gt; $columns) {

     $returnkey[$count]=array('mediaId'=&gt;$key,   
              'columns'=&gt;$columns,'user'=&gt;array_slice($columns,1,2));
     $count++;
}
natcasesort($returnArray['key']['comment']['photoInfo']['view']);
print_r($returnArray['key']['comment']['photoInfo']['view']);
</code></pre>

<p>I am trying to sort based on views.
i try to use natcasesort but it does not work.
Any thought for that.
Thank you.</p>
