Order emails by order in automation
[MAILPOET-5092]
This commit is contained in:
@ -103,6 +103,10 @@ class OverviewStatisticsController {
|
|||||||
$data['emails'][$newsletterId]['revenue']['previous'] = $statistic->getWooCommerceRevenue() ? $statistic->getWooCommerceRevenue()->getValue() : 0;
|
$data['emails'][$newsletterId]['revenue']['previous'] = $statistic->getWooCommerceRevenue() ? $statistic->getWooCommerceRevenue()->getValue() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usort($data['emails'], function ($a, $b) {
|
||||||
|
return $a['order'] <=> $b['order'];
|
||||||
|
});
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user