Commit 3eec80e0 authored by JanFontanet's avatar JanFontanet
Browse files

[#611]Sort ISOs by name

parent 82b6c778
......@@ -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