Commit be160418af4a16091e7e4b4fdd86e29b28139b25

Authored by Alexey Boroda
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,7 +46,7 @@
46 'status' => true, 46 'status' => true,
47 ] 47 ]
48 ) 48 )
49 - ->orderBy("sort"); 49 + ->orderBy(["created_at" => SORT_DESC]);
50 50
51 return $this->prepareProviderAndRender($query); 51 return $this->prepareProviderAndRender($query);
52 } 52 }
@@ -150,4 +150,4 @@ @@ -150,4 +150,4 @@
150 return $this->prepareProviderAndRender($query); 150 return $this->prepareProviderAndRender($query);
151 } 151 }
152 152
153 - }  
154 \ No newline at end of file 153 \ No newline at end of file
  154 + }