Order admin monitors in Global Configuration
@@ -34,7 +34,8 @@ f.section(title: _("Administrative monitors configuration")) {
f.entry(title: _("Enabled administrative monitors")) {
p(_("blurb"))
table(width: "100%") {
- for (AdministrativeMonitor am : AdministrativeMonitor.all()) {
+ for (AdministrativeMonitor am : new ArrayList<>(AdministrativeMonitor.all())
+ .sort({ o1, o2 -> o1.getDisplayName() <=> o2.getDisplayName() })) {
f.block() {
f.checkbox(name: "administrativeMonitor",
title: am.displayName,
