It seems that --sort d is not honoured when -p is also used:
$ ledger -f b.dat --sort d -p "until 2010" reg
2009-01-01 Opening Balances Assets:Checking 100.00 EUR 100.00 EUR
Eq:Opening Balances -100.00 EUR 0
2009-03-01 Test Expenses:Phone 10.00 EUR 10.00 EUR
Assets:Checking -10.00 EUR 0
2009-02-01 Test Expenses:Phone 10.00 EUR 10.00 EUR
Assets:Checking -10.00 EUR 0
$ ledger -f b.dat --sort d reg
2009-01-01 Opening Balances Assets:Checking 100.00 EUR 100.00 EUR
Eq:Opening Balances -100.00 EUR 0
2009-02-01 Test Expenses:Phone 10.00 EUR 10.00 EUR
Assets:Checking -10.00 EUR 0
2009-03-01 Test Expenses:Phone 10.00 EUR 10.00 EUR
Assets:Checking -10.00 EUR 0
$ cat b.dat
2009-01-01 Opening Balances
Assets:Checking 100.00 EUR
Equity:Opening Balances
2009-03-01 Test
Expenses:Phone 10.00 EUR
Assets:Checking
2009-02-01 Test
Expenses:Phone 10.00 EUR
Assets:Checking
This is with ledger from git from yesterday (master-0-g7ca8149). It
used to work fine with ledger v2.
--
Martin Michlmayr
http://www.cyrius.com/
To unsubscribe from this group, send email to
ledger-cli+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.