Index: gnucash-2.6.4/src/engine/Account.c
===================================================================
--- gnucash-2.6.4.orig/src/engine/Account.c
+++ gnucash-2.6.4/src/engine/Account.c
@@ -4713,6 +4713,7 @@ gnc_account_tree_staged_transaction_trav
     }
 
     /* Now this account */
+    xaccAccountSortSplits(acc, TRUE);
     for (split_p = priv->splits; split_p; split_p = g_list_next(split_p))
     {
         s = split_p->data;
