diff options
Diffstat (limited to 'lib/Travel')
-rw-r--r-- | lib/Travel/Status/DE/DBWagenreihung.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm index c6163cc..f3e38f0 100644 --- a/lib/Travel/Status/DE/DBWagenreihung.pm +++ b/lib/Travel/Status/DE/DBWagenreihung.pm @@ -360,6 +360,10 @@ sub parse_wagons { for my $group (@wagon_groups) { $group->sort_wagons; } + @wagon_groups = sort { + $a->{wagons}[0]{position}{start_percent} + <=> $b->{wagons}[0]{position}{start_percent} + } @wagon_groups; } for my $i ( 0 .. $#wagon_groups ) { |