I currently add this to my qa-config.php
'questions' => '',
Is it possible to add sort by recent answer and comment?
You can't choose the sorting. What you can choose is to show a new section (the All Activity one) as I explained in this other answer http://www.question2answer.org/qa/41479/sort-by-last-comment-and-answer?show=41484#a41484
I would remove what you've added (I'm not sure why you added that or whether you fully understand what that does) and replace it with the content in the other answer:
'' => 'activity',
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask 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.
July 15, 2020: Q2A 1.8.5 released!