yes.
i you need to sort on several fields
User Profile
Collapse
-
i try this but it's sort only one field:
@a = split(/\|/,$a);
@b = split(/\|/,$b);
return @b[1] <=> @a[1] ;
can u help me?Leave a comment:
-
Sorting
Hello,
i want to sort data by $download and by $views .. this is the script:
[code=perl]
foreach $item (@lines) {
($id_file, $download,$view s) = split (/\|/, $item) ;
}
[/code]
example:
1 - 41
2 - 51
3 - 61
4 - 71
5 - 81
6 - 91
thanks -
Sorting
Hello,
i want to sort data by $download .. this is the script:
[code=perl]
foreach $item (@lines) {
($id_file, $download) = split (/\|/, $item) ;
}
[/code]
thanks
No activity results to display
Show More
Leave a comment: