Unverified Commit 9e1e111c authored by Francesc Guasch's avatar Francesc Guasch Committed by GitHub
Browse files

Merge pull request #706 from UPC/611_sortISOs

[#611]Sort ISOs by name
parents 222acf50 3eec80e0
......@@ -380,7 +380,7 @@ Returns a reference to a list of the ISOs known by the system
sub iso_file {
my $self = shift;
my $vm = $self->search_vm('KVM');
my @isos = $vm->search_volume_path_re(qr(.*\.iso$));
my @isos = sort { "\L$a" cmp "\L$b" } $vm->search_volume_path_re(qr(.*\.iso$));
#TODO remove path from device
return \@isos;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment