Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
515 views
in Q2A Core by
How do I sort hidden questions at "domain.com/admin/hidden" from old to new?
Q2A version: 1.8.3

2 Answers

0 votes
by
selected by
 
Best answer

I found the answer.

/qa-include/pages/admin/admin-hidden.php line 62

$questions = qa_any_sort_by_date(array_merge($hiddenquestions, $hiddenanswers, $hiddencomments));

$questions = array_reverse($questions);  //add this line

 

–1 vote
by

It will need to hack the core program.

qa-include/db/selects.php (around L340 qa_db_qs_selectspec())

case 'created':
case 'hotness':
    if($specialtype == 'Q_HIDDEN'  && $sort == 'created')
        $sortsql = 'ORDER BY ^posts.' . $sort;
    else

        $sortsql = 'ORDER BY ^posts.' . $sort . ' DESC';

by
I did what they said, but it didn't. Is there a different solution?
...