比如说 收藏夹
我统计出每个人收藏了多少篇文章
对每个人的收藏数量做了个排行
用fun得出来的这个数值 怎么排序显示呢?
<table class="show-table table table-hover table-striped"><thead> <tr class="head"><th class="txtcenter">排名</th><th>用户</th><th>收藏数量</th></tr> </thead> <tbody class="ListNewfen"> {qb:tag name="pc_paihang" type="member" order="view" rows="20" id="rs"} <tr> <td class="rank txtcenter" width="150"> <b class="first">{$i}</b> </td> <td class="user-td" width="300"> <a href="{:get_url('user',['uid'=>$rs['uid']])}"> <img onerror="this.src='__STATIC__/images/nobody.gif'" src="{$rs.icon}" alt="{$rs.username}"> </a> <span class="raknk-mame">{$rs.username}</span> </td> <td class="txtcenter">{:fun("count@info",'qb_fav',['uid'=>$rs.uid])}</td> </tr> {/qb:tag} </tbody> </table>