I have dropdown sorts on my displaylinks.tpl pages. I offer three options: sort by newest games, most popular and top rated. The problem is that when people sort by top rated, results will bring up links that have only 1 vote with a perfect score over a link with 10 votes and a perfect score.
Two things I'd like to be able to do, if possible:
1. automatically have a secondary sort of most votes to least. 2. (this one is a longshot) first show results of top rated links with 10+ votes only, then show top rated links with less than 10 votes.
I ask about #2 just in case it's possible, but otherwise I'd like to be able to implement #1.
1. Doesn't your default secondary sort automatically apply regardless of primary sort selected? I believe it does. 2. Other than multiple toplists I don't see a way.
If you go to the above link and sort by Top Rated, the first link has only 1 vote and a rating of 5, and the second link has several votes and a rating of 5.
In General Appearance, the only place I have the option for a secondary sort is title ascending. Would this be where I would change the secondary for this sort? The problem here is that I want that secondary sort for my default display of links, and when sorting by ranking, I want my secondary differently. Is there some way I can do this?
Comments on Drop down sort on Display Links
Forum Regular
Usergroup: Customer
Joined: Jun 02, 2004
Total Topics: 32
Total Comments: 142
I have dropdown sorts on my displaylinks.tpl pages. I offer three options: sort by newest games, most popular and top rated. The problem is that when people sort by top rated, results will bring up links that have only 1 vote with a perfect score over a link with 10 votes and a perfect score.
Two things I'd like to be able to do, if possible:
1. automatically have a secondary sort of most votes to least.
2. (this one is a longshot) first show results of top rated links with 10+ votes only, then show top rated links with less than 10 votes.
I ask about #2 just in case it's possible, but otherwise I'd like to be able to implement #1.
To see sort in action: www.gamelinks.com/index.php...?action=displaycat&catid=5
Thanks,
Adam
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
1. Doesn't your default secondary sort automatically apply regardless of primary sort selected? I believe it does.
2. Other than multiple toplists I don't see a way.
Forum Regular
Usergroup: Customer
Joined: Jun 02, 2004
Total Topics: 32
Total Comments: 142
If you go to the above link and sort by Top Rated, the first link has only 1 vote and a rating of 5, and the second link has several votes and a rating of 5.
In General Appearance, the only place I have the option for a secondary sort is title ascending. Would this be where I would change the secondary for this sort? The problem here is that I want that secondary sort for my default display of links, and when sorting by ranking, I want my secondary differently. Is there some way I can do this?
Adam
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You can only have one secondary sort order, it can't vary.