Hi darnoldy,
Thank you for your help. Your example works almost perfect. First I had to change the "=" to "==".
The problem with the your solution is if a user makes a post in the thread or clicks on the bread crumb, the alpha sorting is lost.
I ended up modifying the forumdisplay.php as follows. This works perfect.
Code:
Find:
if ($vbulletin->GPC['sortorder'] != 'asc')
REPLACE it with:
if ($vbulletin->GPC['sortorder'] != 'asc' AND $foruminfo['forumid'] != 'XX')
Find:
$sqlsortfield = 'lastpost';
$sortfield = 'lastpost';
REPLACE it with:
if ($foruminfo['forumid'] == 'XX'):
$sqlsortfield = 'thread.title';
$sortfield = 'thread.title';
else:
$sqlsortfield = 'lastpost';
$sortfield = 'lastpost';
endif;