Re: Sorting on multiple keys and Sort Stability
On 07/05/2017 01:01 PM, John Wiegley wrote: > Does this help: > > ledger print --raw --sort 'date,payee' Yes, "--sort 'date,payee'" does what I want to do. Thank you very much. -- Segundo Bob segundo...@gmail.com -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Sorting on multiple keys and Sort Stability
> "BH" == Bob Hossleywrites: BH> The ledger sort is *NOT* "stable". A sort is "stable" iff when multiple BH> records have the same key, their original order is preserved. BH> Consequently, I can't use the ledger sort to achieve sorting on multiple BH> keys. When I convert my GnuCash file to Ledger, the transactions are in BH> random order. I want the transactions in my journal ordered first by date BH> and second by payee. Does this help: ledger print --raw --sort 'date,payee' -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Sorting on multiple keys and Sort Stability
The ledger sort is *NOT* "stable". A sort is "stable" iff when multiple records have the same key, their original order is preserved. Consequently, I can't use the ledger sort to achieve sorting on multiple keys. When I convert my GnuCash file to Ledger, the transactions are in random order. I want the transactions in my journal ordered first by date and second by payee. Is there any chance that ledger sort will be made "stable"? Can anyone suggest a way to achieve the journal structure I want? -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.