1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/config/environment/ui-test-tidb.php
Stefan Giehl 4cce5221c1 Sort email reports by description in API & UI (#22462)
* Sort email reports by description
* Allow database specific configs
2024-08-03 07:11:03 +12:00

16 خطوط
496 B
PHP

<?php
use Piwik\DI;
return [
'observers.global' => DI::add([
['API.ScheduledReports.getReports.end', DI::value(function (&$result, $parameters) {
// TiDb uses a different collation, causing the report order to be slightly different.
// To have a consistent sorting, we manually sort here in PHP again.
usort($result, function ($a, $b) {
return strcmp($a['description'], $b['description']);
});
})],
]),
];