mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-05 18:13:12 +03:00
; Use defsortspec everywhere instead of hard-coding default
This commit is contained in:
parent
74db7f688c
commit
275c72b770
@ -202,7 +202,7 @@ defreportopts = ReportOpts
|
||||
, querystring_ = []
|
||||
, average_ = False
|
||||
, related_ = False
|
||||
, sortspec_ = [Date' False] -- by default, sort by date in ascending order
|
||||
, sortspec_ = defsortspec
|
||||
, txn_dates_ = False
|
||||
, balancecalc_ = def
|
||||
, balanceaccum_ = def
|
||||
@ -682,6 +682,7 @@ data SortField
|
||||
deriving (Show, Eq)
|
||||
type SortSpec = [SortField]
|
||||
|
||||
-- By default, sort by date in ascending order
|
||||
defsortspec :: SortSpec
|
||||
defsortspec = [Date' False]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user