Nice one, although I wrote that myself about half a year ago (with ability to sort by thread creation date)
Adding sorting should be fairly straightforward:
In Template FORUMDISPLAY
REPLACE
Code:
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[date_creation]</a></span></td>
WITH
Code:
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=asc&sort=threadstarted">$vbphrase[date_creation]</a> $sortarrow[threadstarted]</span></td>
In forumdisplay.php FIND
PHP Code:
case 'postusername':
$sqlsortfield = $sortfield;
break;
BELOW that ADD
PHP Code:
case 'threadstarted':
$sqlsortfield = 'thread.dateline';
break;
That's it (at least if I remeber correctly).