JavaScript
8
Вклад в тег
$articles=Article::find()->orderBy('sort_date DESC')->limit(10)->All();
$sorted_articles=[];
foreach($articles as $article){
$dt=date('d.m.Y',$article->sort_date);
$sorted_articles[$dt][]=$article;
}