sort descending
This commit is contained in:
parent
f1227da9ca
commit
2f06fd221d
|
@ -136,7 +136,8 @@ yearToDateStatsReport :: Int -> ProgState -> [String]
|
|||
yearToDateStatsReport width s = let
|
||||
db = s^.database
|
||||
|
||||
playerStats = sortOn (psPoints . snd)
|
||||
playerStats = reverse
|
||||
$ sortOn (psPoints . snd)
|
||||
$ map (\p -> (p, p^.pYtd))
|
||||
$ filter playerIsActive
|
||||
$ db^.dbPlayers
|
||||
|
@ -153,7 +154,8 @@ lifetimeStatsReport :: Int -> ProgState -> [String]
|
|||
lifetimeStatsReport width s = let
|
||||
db = s^.database
|
||||
|
||||
playerStats = sortOn (psPoints . snd)
|
||||
playerStats = reverse
|
||||
$ sortOn (psPoints . snd)
|
||||
$ map (\p -> (p, p^.pLifetime))
|
||||
$ db^.dbPlayers
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user