diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 2ce5e845..d62a4634 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -156,7 +156,7 @@ sub download_by_type : Chained('build') PathPart('download-by-type') { unless defined $type && defined $subtype; (my $product) = $c->stash->{build}->buildproducts->search( - {type => $type, subtype => $subtype}); + {type => $type, subtype => $subtype}, {order_by => "productnr"}); notFound($c, "Build doesn't have a build product with type $type/$subtype.") if !defined $product;