revert sort fix
This commit is contained in:
parent
49b437d97a
commit
166417a802
|
@ -34,7 +34,7 @@ class Blog implements ControllerProviderInterface
|
|||
|
||||
foreach($blogposts as &$blogdir){
|
||||
uasort($blogdir, function ($a, $b) {
|
||||
return $a['publish_date'] <=> $b['publish_date'];
|
||||
return $b['publish_date'] <=> $a['publish_date'];
|
||||
}); // sort blog posts by publish date
|
||||
|
||||
foreach($blogdir as &$post){
|
||||
|
|
Loading…
Reference in New Issue