
July 20th, 2000, 03:44 PM
|
|
Junior Member
|
|
Join Date: Jul 2000
Location: Norman, OK, USA
Posts: 12
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Hello,
I am having a small problem with sorting the following:
@Rows
$Rows [0][0] = ref0
$Rows [0][1] = title0
$Rows [0][2] = desc0
$Rows [1][0] = ref1
$Rows [1][1] = title1
$Rows [1][2] = desc1
$Rows [2][0] = ref2
$Rows [2][1] = title2
$Rows [2][2] = desc2
@sorted = sort {$Rows{$a->[0][1]} <=> $Rows{$b->[0][1]}} @Rows;
Any advice/help/rewrites would be appreciated.
-Loki
|