Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Sort on multiple fields ?

Quote Reply
Sort on multiple fields ?
Alex, would it be possible to add the facility to sort on more than one field to the new Links final ?

Quote:
@search_fields = (1,2,5);


is built in to allow you to select which fields a user can search on, but what I would like would be for something like:

Quote:
$db_sort_links = (1,11);

which would allow us to sort links by one field such as 'member/non-member' and then further sort them into alphabetical order. Obviously this would need to affect both the category pages and the search results.

Is this a possibility ? I'm sure it would prove useful to many of us...

------------------
Craig Antill
10 Tenths Motorsport
www.Ten-Tenths.com
Quote Reply
Re: Sort on multiple fields ? In reply to
Hi Craig,

I'll take a look into it, but it might not make it into 2.0..

Cheers,

Alex
Quote Reply
Re: Sort on multiple fields ? In reply to
Cheers Alex - and don't rush it in - get what you're currently working on finished first Smile

On a similar line, is it possible to remove a site from the search results ? What I wanted to do was to only allow member sites to appear in the search results - non member sites would not appear. I'll have a tinker with the script at sometime, but thought i'd ask you first - you seem to have a bit more of a clue about Perl than me Smile

Cheers!

------------------
Craig Antill
10 Tenths Motorsport
www.Ten-Tenths.com