HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/matomo.vdk/config/environment/ui-test-tidb.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']);
            });
        })],
    ]),
];