1.灵动标签之按发布时间排序
[e:loop={'news',10,18,0,'','newstime DESC'}]
<li><span>1</span><a href="<?=$bqsr[titleurl]?>"target="_blank">
<?=$bqr[title]?></a></li>
[/e:loop]
其他的可以类似举一反三。
2.灵动标签之按访问量排序
[e:loop={'news',10,18,0,'','onclick DESC'}]
<li><span>1</span><a href="<?=$bqsr[titleurl]?>"target="_blank">
<?=$bqr[title]?></a></li>
[/e:loop]
3.灵动标签之按文章id排序
[e:loop={'news',10,18,0,'','id DESC'}]
<li><span>1</span><a href="<?=$bqsr[titleurl]?>"target="_blank">
<?=$bqr[title]?></a></li>
[/e:loop]
4.灵动标签之按文章评论数量排序
[e:loop={'news',10,18,0,'','plnum DESC'}]
<li><span>1</span><a href="<?=$bqsr[titleurl]?>"target="_blank">
<?=$bqr[title]?></a></li>
[/e:loop]
5.正向和反向排序问题
降序排列:DESC
升序排列:ASC