Commit be160418af4a16091e7e4b4fdd86e29b28139b25
1 parent
ef5dd227
blog index order fixed
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
frontend/controllers/BlogController.php
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | 'status' => true, |
47 | 47 | ] |
48 | 48 | ) |
49 | - ->orderBy("sort"); | |
49 | + ->orderBy(["created_at" => SORT_DESC]); | |
50 | 50 | |
51 | 51 | return $this->prepareProviderAndRender($query); |
52 | 52 | } |
... | ... | @@ -150,4 +150,4 @@ |
150 | 150 | return $this->prepareProviderAndRender($query); |
151 | 151 | } |
152 | 152 | |
153 | - } | |
154 | 153 | \ No newline at end of file |
154 | + } | ... | ... |