Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sort the log files in descending order.

  • Loading branch information...
commit fd62ea64e0ef18a4f33eba73b26b8b971478cb9b 1 parent 1e75f3e
@hyPiRion hyPiRion authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/lazybot/plugins/logger.clj
View
6 src/lazybot/plugins/logger.clj
@@ -112,9 +112,9 @@
(list
[:h1 "Logs for " channel " on " server]
[:ol
- (map (fn [log]
- [:li (link log server channel log)])
- logs)]))))
+ (->> logs
+ (sort (fn [a b] (compare b a)))
+ (map (fn [log] [:li (link log server channel log)])))]))))
(defn server-index
"A hiccup doc describing logs on a server."
Please sign in to comment.
Something went wrong with that request. Please try again.