On May 15, 10:23 am, Derek Mahar <[email protected]> wrote: > On May 15, 12:31 am, John Wiegley <[email protected]> wrote: > > > This is not correct. It shouldn't matter where a transaction came > > from, if you are using the -S flag. What version of Ledger is this? > > Ledger does correctly sort the sample files that I just cooked up, but > for some reason, it doesn't work with the "real" files that I created > at home. Might I have entered 2008 instead of 2009? Will see later > tonight when I get home.
After re-running the ledger-print, I found that I had entered the print command and "--sort d" option in the wrong order on the command line. The command $ ledger --file Master.ledger print --sort d printed the transactions in the original order that they appeared in the files and in the order which ledger included them in the master ledger file. It also omitted a few of the included transaction files. However, when I moved "--sort d" ahead of the print command, ledger printed all the commands in all the files and in sorted date order: $ ledger --file Master.ledger --sort d print I think what I misunderstood was that the "--sort d" option applies to all ledger commands, not just the print command. Derek
