Balances use each account's own posted ledger entries. Subaccounts are shown separately. Sorting keeps subaccounts under their parents.