I tried this code: It sorts all answers, including voted-up answers, from newest to oldest. Is there a way to have answers newest to oldest while still allowing up-voted answers to appear at the top?
if (qa_opt('sort_answers_by')=='votes') {
foreach ($answers as $answerid => $answer)
$answers[$answerid]['sortvotes']=$answer['downvotes']-$answer['upvotes'];
qa_sort_by($answers, 'sortvotes', 'created');
} else
qa_sort_by($answers, 'created');
$answers = array_reverse($answers, true);