From: Richard Jones Date: Fri, 14 May 2010 18:42:48 +0000 (+0100) Subject: virt-df: Display domains in sorted order. X-Git-Tag: 1.3.13~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=5d5565ca24b95719461b0c0aebdb0651dd2671ca;p=libguestfs.git virt-df: Display domains in sorted order. --- diff --git a/tools/virt-df b/tools/virt-df index b997691..4aa1063 100755 --- a/tools/virt-df +++ b/tools/virt-df @@ -163,7 +163,7 @@ if (@ARGV == 0) { # https://bugzilla.redhat.com/show_bug.cgi?id=538041 @doms = grep { $_->get_id () != 0 } @doms; - my @domnames = map { $_->get_name () } @doms; + my @domnames = sort (map { $_->get_name () } @doms); if (@domnames) { print_title ();