hledger/hledger-lib/Hledger/Data
Simon Michael 3de8c11de1 journal: a new account sorting mechanism, and a bunch of sorting fixes
A bunch of account sorting changes that got intermingled.

First, account codes have been dropped. They can still be parsed and
will be ignored, for now. I don't know if anyone used them.
Instead, account display order is now controlled by the order of account
directives, if any. From the mail list:

  I'd like to drop account codes, introduced in hledger 1.9 to control
  the display order of accounts. In my experience,

  - they are tedious to maintain
  - they duplicate/compete with the natural tendency to arrange account
    directives to match your mental chart of accounts
  - they duplicate/compete with the tree structure created by account
    names

  and it gets worse if you think about using them more extensively,
  eg to classify accounts by type.

  Instead, I plan to just let the position (parse order) of account
  directives determine the display order of those declared accounts.
  Undeclared accounts will be displayed after declared accounts,
  sorted alphabetically as usual.

Second, the various account sorting modes have been implemented more
widely and more correctly. All sorting modes (alphabetically, by account
declaration, by amount) should now work correctly in almost all commands
and modes (non-tabular and tabular balance reports, tree and flat modes,
the accounts command). Sorting bugs have been fixed, eg #875.
Only the budget report (balance --budget) does not yet support sorting.

Comprehensive functional tests for sorting in the accounts and balance
commands have been added. If you are confused by some sorting behaviour,
studying these tests is recommended, as sorting gets tricky.
2018-09-22 21:45:07 -10:00
..
Account.hs journal: a new account sorting mechanism, and a bunch of sorting fixes 2018-09-22 21:45:07 -10:00
AccountName.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
Amount.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
Commodity.hs tests: clear out old boilerplate 2018-08-31 18:12:17 -07:00
Dates.hs lib: capitalised month names broke some period expressions (fix #852) 2018-07-30 11:08:23 +01:00
Journal.hs journal: a new account sorting mechanism, and a bunch of sorting fixes 2018-09-22 21:45:07 -10:00
Ledger.hs journal: a new account sorting mechanism, and a bunch of sorting fixes 2018-09-22 21:45:07 -10:00
MarketPrice.hs tests: clear out old boilerplate 2018-08-31 18:12:17 -07:00
Period.hs bs/bse/cf/is: fix display of abbreviated name for December 2018-01-19 12:45:51 -08:00
PeriodicTransaction.hs tests: update doctests after Transaction Show change 2018-09-04 14:02:04 -07:00
Posting.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
RawOptions.hs csv: merge lucamolteni's cassava/custom separators (squashed) (#829) 2018-09-07 12:34:51 -07:00
StringFormat.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
Timeclock.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
Transaction.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
TransactionModifier.hs tests: update doctests after Transaction Show change 2018-09-04 14:02:04 -07:00
Types.hs journal: a new account sorting mechanism, and a bunch of sorting fixes 2018-09-22 21:45:07 -10:00