P
Paul Tomlinson
Hello, I have an array of variable size which contains a hash with three
keys: count, name, description. I have a call to sort which sorts this
array by count, but I also want this call to sort by name within count.
This is my call:
@Stats = sort {$b->{Program}{Count} <=> $a->{Program}{Count}} @Stats;
which like I say sorts by count (descending), can anyone help me in sorting
by name within count please.
Paul.
keys: count, name, description. I have a call to sort which sorts this
array by count, but I also want this call to sort by name within count.
This is my call:
@Stats = sort {$b->{Program}{Count} <=> $a->{Program}{Count}} @Stats;
which like I say sorts by count (descending), can anyone help me in sorting
by name within count please.
Paul.