diff --git a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php index 7c3c8125b7..875d46699f 100644 --- a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php +++ b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php @@ -383,9 +383,19 @@ class PhabricatorApplicationTransactionView extends AphrontView { } foreach ($groups as $key => $group) { - $group = msort($group, 'getActionStrength'); - $group = array_reverse($group); - $groups[$key] = $group; + $results = array(); + + // Sort transactions within the group by action strength, then by + // within actions of similar strength. + $strength_groups = mgroup($group, 'getActionStrength'); + krsort($strength_groups); + foreach ($strength_groups as $strength_group) { + foreach (msort($strength_group, 'getID') as $xaction) { + $results[] = $xaction; + } + } + + $groups[$key] = $results; } return $groups;