diff --git a/src/applications/ponder/controller/PonderQuestionViewController.php b/src/applications/ponder/controller/PonderQuestionViewController.php --- a/src/applications/ponder/controller/PonderQuestionViewController.php +++ b/src/applications/ponder/controller/PonderQuestionViewController.php @@ -225,9 +225,10 @@ $xaction_groups = mgroup($xactions, 'getObjectPHID'); $author_phids = mpull($answers, 'getAuthorPHID'); $handles = $this->loadViewerHandles($author_phids); + $answers_sort = array_reverse(msort($answers, 'getVoteCount')); $view = array(); - foreach ($answers as $answer) { + foreach ($answers_sort as $answer) { $xactions = idx($xaction_groups, $answer->getPHID(), array()); $id = $answer->getID(); $handle = $handles[$answer->getAuthorPHID()];