diff --git a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php --- a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php +++ b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php @@ -383,9 +383,19 @@ } 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;