修改后的结果就是按照点击排序。赶紧修改你的搜索代码,优化织梦的搜索结果大大提高用户体验吧!$ordersql = '';
if($this->ChannelType< 0 ||$this->ChannelTypeid< 0){
if($orderby=="id"){
$ordersql="order by arc.aid desc";
}else if($orderby=="senddate"){
$ordersql="order by arc.senddate desc";
}else{
$ordersql=" order by arc.click desc";
}
}else{
if($orderby=="senddate")
{
$ordersql=" order by arc.senddate desc";
}
else if($orderby=="pubdate")
{
$ordersql=" order by arc.pubdate desc";
}
else if($orderby=="id")
{
$ordersql=" order by arc.id desc";
}
else
{
$ordersql=" order by arc.click desc";
}
}