summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-12 18:16:52 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-12 18:16:52 +0200
commit97b0b4bd938cba7fa32a8afd8bf343d019b1a72d (patch)
treeefd088075ecca5594a94ae431161febaff682468 /lib
parent897b88691c05adda8eaca09c3064b12ecfa74062 (diff)
backend form: always show IRIS first
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Controller/Account.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm
index 09aa81a..ec6a02f 100644
--- a/lib/Travelynx/Controller/Account.pm
+++ b/lib/Travelynx/Controller/Account.pm
@@ -1026,7 +1026,12 @@ sub backend_form {
$backend->{type} = $type;
}
- @backends = grep { $_->{type} } @backends;
+ my $iris = shift @backends;
+
+ @backends
+ = sort { $a->{name} cmp $b->{name} } grep { $_->{type} } @backends;
+
+ unshift( @backends, $iris );
$self->render(
'select_backend',