diff --git a/includes/html/forms/parse-alert-template.inc.php b/includes/html/forms/parse-alert-template.inc.php
index 2d6b6ba31b..95bcfba3ab 100644
--- a/includes/html/forms/parse-alert-template.inc.php
+++ b/includes/html/forms/parse-alert-template.inc.php
@@ -41,7 +41,7 @@ if ($template_edit) {
];
}
-foreach (dbFetchRows("SELECT `id`,`rule`,`name` FROM `alert_rules`", []) as $rule) {
+foreach (dbFetchRows("SELECT `id`,`rule`,`name` FROM `alert_rules` order by `name`", []) as $rule) {
$is_selected = $template_edit ? dbFetchCell("SELECT `alert_templates_id` FROM `alert_template_map` WHERE `alert_rule_id` = ? AND `alert_templates_id` = ?", [$rule['id'], $template_id]) : null;
$is_available = dbFetchCell("SELECT `alert_templates_id` FROM `alert_template_map` WHERE `alert_rule_id` = ?", [$rule['id']]);
$rules[] = [