From 4a12c1a1629ec18db06583ad0ac503e3c1e34605 Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Sun, 13 May 2012 19:20:38 -0500 Subject: make sboconfig -l sort the output --- sboconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sboconfig b/sboconfig index 0319e4e..be17718 100755 --- a/sboconfig +++ b/sboconfig @@ -50,8 +50,9 @@ show_usage () and exit (0) if exists $options{h}; show_version () and exit (0) if exists $options{v}; if (exists $options{l}) { - while (my ($key,$value) = each %config) { - print "$key=$value\n"; + my @keys = sort {$a cmp $b} keys %config; + for my $key (@keys) { + print $config{$key}=$config{$value},"\n"; } } -- cgit v1.2.3