Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Sorting of links

Quote Reply
Sorting of links
How can I reorder/sort the links inside a category according to alphabetical order, or number of hits?

------------------
Quote Reply
Re: Sorting of links In reply to
Hi Restos!

Have a look at this:

http://www.gossamer-threads.com/...um2/HTML/000685.html

If that does not help, do a search under sorting or alphabetic..



------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory


Quote Reply
Re: Sorting of links In reply to
Hi,
I followed the directions below from the other thread, and it works great for regular link pages, and the search results page, but the What's New page is still coming up in an order that is not alphabetical. Any way to alphabetitize the What's New page?
Thanks!!!!
-V
=======================================
Bobsie wrote:
If you want all alphabetical listings without new and cool links being
listed first, just go to db_utils.pl, sub build_sorthit and comment out
the following lines:
quote:

------------------------------------------------------------------------
($unsorted[$db_isnew + ($i * ($#db_cols+1))] eq "Yes") and ($isnew{$i} =
1);
($unsorted[$db_ispop + ($i * ($#db_cols+1))] eq "Yes") and ($iscool{$i}
= 1);
($isnew{$b} and !$isnew{$a}) and return 1;
($isnew{$a} and !$isnew{$b}) and return -1;
($iscool{$b} and !$iscool{$a}) and return 1;
($iscool{$a} and !$iscool{$b}) and return -1;
($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});
------------------------------------------------------------------------

I hope this helps.

[This message has been edited by Bobsie (edited April 12, 1999).]
=======================================