How can i fix it so, that when somebody clicks on a category, the sites in that category will get listed chronical listed (last site added will be on top)
Oct 21, 2000, 9:12 AM
Veteran (17240 posts)
Oct 21, 2000, 9:12 AM
Post #2 of 2
Views: 178
Unless you have hacked the Links scripts, the links should sort in the following manner:
1) New (descending order --> Most New to Least New)
2) Cool (descending order ---> Most Hits to Least Hits)
3) Alphabetical
The following codes do this in the sub build_sorthit routine in the db_utils.pl file:
($isnew{$a} and $isnew{$b}) and return lc($sortby{$a}) cmp lc($sortby{$b});
($iscool{$a} and $iscool{$b}) and return lc($sortby{$a}) cmp lc($sortby{$b});
return lc($sortby{$a}) cmp lc($sortby{$b});
Regards,
Eliot Lee
1) New (descending order --> Most New to Least New)
2) Cool (descending order ---> Most Hits to Least Hits)
3) Alphabetical
The following codes do this in the sub build_sorthit routine in the db_utils.pl file:
Code:
($isnew{$a} and $isnew{$b}) and return lc($sortby{$a}) cmp lc($sortby{$b});
Code:
($iscool{$a} and $iscool{$b}) and return lc($sortby{$a}) cmp lc($sortby{$b});
Code:
return lc($sortby{$a}) cmp lc($sortby{$b});
Regards,
Eliot Lee

