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.
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.