// line 314, add // $sortsql = 'ORDER BY RAND()'; case 'created': case 'hotness': $sortsql='ORDER BY ^posts.'.$sort.' DESC'; $sortsql = 'ORDER BY RAND()'; break;