Skip to content

Commit

Permalink
reverse-sort @activity
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Jan 11, 2007
1 parent c43396f commit a0a49e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/Activity.hs
Expand Up @@ -23,7 +23,7 @@ instance Module ActivityModule ActivityState where
secs <- (normalizeTimeDiff . \sec -> TimeDiff 0 0 0 0 0 sec 0) `fmap` readM rest
now <- io getClockTime
users <- (map snd . filter ((< secs) . diffClockTimes now . fst)) `fmap` readMS
let agg_users = sort . map (length &&& head) . group . sort $ users
let agg_users = reverse . sort . map (length &&& head) . group . sort $ users
let fmt_agg = concatWith " " . (:) (show (length users) ++ "*total") .
map (\(n,u) -> show n ++ "*" ++ Msg.showNick msg u) $ agg_users
return [fmt_agg]
Expand Down

0 comments on commit a0a49e7

Please sign in to comment.