$sqlsortfield = "thread.threadid"; $sqlsortorder = "ASC"; // or "DESC", whichever way you want $sqlsortfield2 = "";