Commit a9b44054 by Scott

Fix sorting of comments on answers during AJAX operations

parent 24aa5c76
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
require_once QA_INCLUDE_DIR.'db/selects.php'; require_once QA_INCLUDE_DIR.'db/selects.php';
require_once QA_INCLUDE_DIR.'pages/question-view.php'; require_once QA_INCLUDE_DIR.'pages/question-view.php';
require_once QA_INCLUDE_DIR.'pages/question-submit.php'; require_once QA_INCLUDE_DIR.'pages/question-submit.php';
require_once QA_INCLUDE_DIR.'util/sort.php';
// Load relevant information about this answer // Load relevant information about this answer
...@@ -88,6 +89,7 @@ ...@@ -88,6 +89,7 @@
$achildposts = qa_page_q_load_c_follows($question, array(), $achildposts); $achildposts = qa_page_q_load_c_follows($question, array(), $achildposts);
$usershtml=qa_userids_handles_html(array_merge(array($answer), $achildposts), true); $usershtml=qa_userids_handles_html(array_merge(array($answer), $achildposts), true);
qa_sort_by($achildposts, 'created');
$a_view=qa_page_q_answer_view($question, $answer, ($answer['postid']==$question['selchildid']) && ($answer['type']=='A'), $a_view=qa_page_q_answer_view($question, $answer, ($answer['postid']==$question['selchildid']) && ($answer['type']=='A'),
$usershtml, false); $usershtml, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment