Hi
I want to sort the threads as default (or selected) by the database.
But before the top x threads are listed I want to make another sort.
So if the sql-query returns the 20 latest threads, and I show 10 threads on each page. Then I will show thread 1-10 on page 1 and 11-20 on page 2.
On page 1 however I want those 1-10 threads to be sorted in a different way than the latest first. For example by thread.title.
I have found the forumdisplay_sort-hook and tried to manipulate it.
This is some code from forumdisplay.php
PHP Code:
if (!$handled)
{
$sqlsortfield = 'lastpost';
$sortfield = 'lastpost';
}
I was thinking that $sqlsortfield could be left to lastpost but then set $sortfield to thread.title or something. But it doesn't seem to work.
Any ideas?