This commit is contained in:
Sachin Bahukhandi 2026-06-08 12:53:37 +00:00 committed by GitHub
commit 0956a65fdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,9 @@ use function htmlspecialchars;
use function in_array;
use function mb_strtoupper;
use function sprintf;
use function strnatcasecmp;
use function trim;
use function usort;
/**
* Triggers management.
@ -182,6 +184,10 @@ final readonly class IndexController implements InvocableController
if ($item !== null) {
$tables = $this->triggers->getTables(Current::$database);
if (Config::getInstance()->settings['NaturalOrder']) {
usort($tables, strnatcasecmp(...));
}
$editor = $this->template->render('triggers/editor_form', [
'db' => Current::$database,
'table' => Current::$table,