Managed to sort this as i wanted. Not sure if this is helpful for anyone but, it did help me acheive my requirement.
My requirement was originally to have an option to sort answers by highest votes at top and most recent comments at top.
However, as this feature doesnt exist yet. I managed to get the following done :
1. Everytime a question page is opened. it will randomly decide option A or B and renders results accordingly.
2. This helps me in 2 ways. 50% of the page views will see highest voted answers at the top. while another 50% will get to see most recent answer added at the top. Thereby promoting every post equally.
Did the following :
File: question.php
look for the line :
if (qa_opt('sort_answers_by')=='votes')
and replace it with :
if(random_int(0,1)==0)
Also, since i wanted a reverse ordering with most recent post at the top, i had to add a 3rd line too (in the else part of the if block:)
$answers=array_reverse($answers);
I am sure there might be a few performance issues around this however. does the job for me.