; Use defsortspec everywhere instead of hard-coding default
This commit is contained in:
parent
74db7f688c
commit
275c72b770
@ -202,7 +202,7 @@ defreportopts = ReportOpts
|
|||||||
, querystring_ = []
|
, querystring_ = []
|
||||||
, average_ = False
|
, average_ = False
|
||||||
, related_ = False
|
, related_ = False
|
||||||
, sortspec_ = [Date' False] -- by default, sort by date in ascending order
|
, sortspec_ = defsortspec
|
||||||
, txn_dates_ = False
|
, txn_dates_ = False
|
||||||
, balancecalc_ = def
|
, balancecalc_ = def
|
||||||
, balanceaccum_ = def
|
, balanceaccum_ = def
|
||||||
@ -682,6 +682,7 @@ data SortField
|
|||||||
deriving (Show, Eq)
|
deriving (Show, Eq)
|
||||||
type SortSpec = [SortField]
|
type SortSpec = [SortField]
|
||||||
|
|
||||||
|
-- By default, sort by date in ascending order
|
||||||
defsortspec :: SortSpec
|
defsortspec :: SortSpec
|
||||||
defsortspec = [Date' False]
|
defsortspec = [Date' False]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user