Probably, this is an answer.
qa-include/pages/question.php (In case of V1.7.4, L283-L290)
Before:
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');
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');
After:
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); }
} else { qa_sort_by($answers, 'created'); $answers = array_reverse($answers, true); }
Note:
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.