Skip to content

Commit

Permalink
sort fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed May 17, 2015
1 parent b062fee commit 7e4d37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/article/api/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function api_last($limit = 1, $where = null)

$result = [];

$query = Item::find()->with('seo')->status(Item::STATUS_ON)->sort()->limit($limit);
$query = Item::find()->with('seo')->status(Item::STATUS_ON)->sortDate()->limit($limit);
if($where){
$query->andFilterWhere($where);
}
Expand Down

0 comments on commit 7e4d37c

Please sign in to comment.