|
|
@@ -73,7 +73,7 @@ function loadListByChannelNameAndPage($maxCount, $name, $page, $searchKeyword =
|
|
|
}
|
|
|
|
|
|
$articles = $articlesQuery
|
|
|
- ->order('createtime DESC')
|
|
|
+ ->order('weigh DESC, createtime DESC')
|
|
|
->limit(($page - 1) * $maxCount, $maxCount)
|
|
|
->get();
|
|
|
|
|
|
@@ -115,7 +115,7 @@ function loadListByChannelIdInNameAndPage($maxCount, $channelIds, $page, $search
|
|
|
}
|
|
|
|
|
|
$articles = $articlesQuery
|
|
|
- ->order('createtime DESC')
|
|
|
+ ->order('weigh DESC, createtime DESC')
|
|
|
->limit(($page - 1) * $maxCount, $maxCount)
|
|
|
->get();
|
|
|
|
|
|
@@ -155,7 +155,7 @@ function loadListPage($maxCount, $page, $searchKeyword = '') {
|
|
|
}
|
|
|
|
|
|
$articles = $articlesQuery
|
|
|
- ->order('createtime DESC')
|
|
|
+ ->order('weigh DESC, createtime DESC')
|
|
|
->limit(($page - 1) * $maxCount, $maxCount)
|
|
|
->get();
|
|
|
|