Gossamer Forum
Home : Products : Links 2.0 : Customization :

Problem: alphabetical order of links

Quote Reply
Problem: alphabetical order of links
Hi,

I'm using Links 2.0 (template-based), which is largely modified. I posted the question some month ago, but unfortunately I couldn't fix my problem:

I would like my links to appear in an alphabetical order. I think I must change something in sub build_sorthit. Here is the beginning of the Code from db_utils.pl:

sub build_sorthit {
# --------------------------------------------------------
# This function sorts a list of links. It has been modified to sort
# new links first, then cool links, then the rest alphabetically. By modifying
# the sort function below, you can sort the links however you like (by date,
# or random, etc.).
#
my (@unsorted) = @_;
my ($num) = ($#unsorted+1) / ($#db_cols+1);
# ***************************************** 3 Shestopalov modification - begin **************
my (%sortby, %priority, %isnew, %iscool, %isbest, $hit, $i, @sorted, $column, $type);
# ***************************************** 3 Shestopalov modification - end ****************

What must I exactly do so that my links are alphabetically ordered?

I'm appreciating your answers.

Phil.

Subject Author Views Date
Thread Problem: alphabetical order of links uzsrb3 1346 Aug 8, 2000, 5:57 AM
Thread Re: Problem: alphabetical order of links
mdj1 1323 Aug 8, 2000, 7:19 PM
Thread Re: Problem: alphabetical order of links
uzsrb3 1315 Aug 9, 2000, 12:37 PM
Post Re: Problem: alphabetical order of links
mdj1 1307 Aug 10, 2000, 12:44 AM