$archiver NSKeyedArchiver $objects $null $class CF$UID 37 NS.objects CF$UID 2 $class CF$UID 33 NS.keys CF$UID 3 CF$UID 4 CF$UID 5 NS.objects CF$UID 6 CF$UID 7 CF$UID 35 Title Text Date Untitled Snapshot $class CF$UID 34 NSAttributes CF$UID 10 NSDelegate CF$UID 0 NSString CF$UID 8 $class CF$UID 9 NS.string @c -S, --sort EXPR sort report according to the value expression EXPR The postings displayed in a report are shown in the same order as they appear in the ledger file. To change the order and sort a report, use the @option{--sort} option. @option{--sort} takes a value expression to determine the value to sort against, making it possible to sort according to complex criteria. Here are some simple and useful examples: @example ledger --sort d reg ^exp # sort by date ledger --sort t reg ^exp # sort by amount total ledger --sort -t reg ^exp # reverse sort by amount total ledger --sort Ut reg ^exp # sort by abs amount total @end example For the balance report, you will want to use @samp{T} instead of @samp{t}: @example ledger --sort T reg ^exp # sort by amount total ledger --sort -T reg ^exp # reverse sort by amount total ledger --sort UT reg ^exp # sort by abs amount total @end example The @option{--sort} options sorts all postings in a report. If periods are used (such as @option{--monthly}), this can get somewhat confusing. In that case, you'll probably want to sort within periods using @option{--period-sort} instead of @option{--sort}. @c -w, --wide for the default register report, use 132 columns And if the register seems too cramped, and you have a lot of screen real estate, you can use @option{-w} to format the report within 132 acolumns, instead of 80. You are more likely then to see full payee and account names, as well as properly formatted totals when long-named commodities are used. If you want only the first or last N transactions to be printed---which can be very useful for viewing the last 10 transactions in your checking account, while also showing the cumulative balance from all transactions---use the @option{--head} and/or @option{--tail} options. The two options may be used simultaneously, for example: @example ledger --tail 20 reg checking @end example If the output from your command is very long, Ledger can output the data to a pager utility, such as @command{more} or @command{less}: @example ledger --pager /usr/bin/less reg checking @end example $classes NSMutableString NSString NSObject $classname NSMutableString $class CF$UID 33 NS.keys CF$UID 11 CF$UID 12 NS.objects CF$UID 13 CF$UID 30 NSParagraphStyle NSFont $class CF$UID 29 NSAlignment 4 NSLineHeightMultiple 1.1000000238418579 NSTabStops CF$UID 14 $class CF$UID 28 NS.objects CF$UID 15 CF$UID 17 CF$UID 18 CF$UID 19 CF$UID 20 CF$UID 21 CF$UID 22 CF$UID 23 CF$UID 24 CF$UID 25 CF$UID 26 CF$UID 27 $class CF$UID 16 NSLocation 28 $classes NSTextTab NSObject $classname NSTextTab $class CF$UID 16 NSLocation 56 $class CF$UID 16 NSLocation 84 $class CF$UID 16 NSLocation 112 $class CF$UID 16 NSLocation 140 $class CF$UID 16 NSLocation 168 $class CF$UID 16 NSLocation 196 $class CF$UID 16 NSLocation 224 $class CF$UID 16 NSLocation 252 $class CF$UID 16 NSLocation 280 $class CF$UID 16 NSLocation 308 $class CF$UID 16 NSLocation 336 $classes NSArray NSObject $classname NSArray $classes NSParagraphStyle NSObject $classname NSParagraphStyle $class CF$UID 32 NSName CF$UID 31 NSSize 14 NSfFlags 16 Courier $classes NSFont NSObject $classname NSFont $classes NSDictionary NSObject $classname NSDictionary $classes KBWordCountingTextStorage NSTextStorage NSMutableAttributedString NSAttributedString NSObject $classname KBWordCountingTextStorage $class CF$UID 36 NS.time 267380389.10013101 $classes NSDate NSObject $classname NSDate $classes NSMutableArray NSArray NSObject $classname NSMutableArray $top Snapshots CF$UID 1 $version 100000