Commit 1b6796d 1 parent 8a6dd09 commit 1b6796d Copy full SHA for 1b6796d
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ sub merge {
156
156
157
157
sub list {
158
158
my ($self ) = @_ ;
159
- return map { $_ -> dump () } values (%{$self -> {list }});
159
+ return map { $_ -> dump () } sort { $a -> deviceid cmp $b -> deviceid } values (%{$self -> {list }});
160
160
}
161
161
162
162
# Also implement a battery class, but split name on new line to not export it in CPAN
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ sub merge {
94
94
95
95
sub list {
96
96
my ($self ) = @_ ;
97
- return map { $_ -> dump () } values (%{$self -> {list }});
97
+ return map { $_ -> dump () } sort { $a -> deviceid cmp $b -> deviceid } values (%{$self -> {list }});
98
98
}
99
99
100
100
# Also implement a powersupply class, but split name on new line to not export it in CPAN
You can’t perform that action at this time.
0 commit comments