sort comments descending programmatically I want to sort all comment descending  programmatically, I found this Comments sorted by oldest first but I dont want use those modules or views solution.
anybody know how can I sort comment descending programmatically?
I means comments in below node(contents) , first ideal is get comments related to node by query and set orderby DESC  but everything show reversed in thread mode, replies come above comment !!!.
&lt;?php
$query = db_select('comment') -&gt;fields('comment', array('cid')) -&gt;condition('nid', arg(1), '=');
$query-&gt;orderBy('created', 'DESC');
$result = $query-&gt;execute();
$cids = $result-&gt;fetchCol();
$comments=comment_load_multiple($cids);
foreach($comments as $comment)  {
  //do some stuff with the comment
}
?&gt;