Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix sort-by-solved in data-tables.

It was only working by coincidence, because they happened to be
sorted that way *anyway* in order to find everyone's ranking.
  • Loading branch information...
commit b446145f1ab4ef162c4cadd4107748f88e495ac4 1 parent cf2e9d5
@amalloy amalloy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/foreclojure/users.clj
View
2  src/foreclojure/users.clj
@@ -267,7 +267,7 @@
(defn datatable-paging [start length users]
(take length (drop start users)))
-(let [column-sorts [:rank :user (comp :solved count)]]
+(let [column-sorts [:rank :user (comp count :solved)]]
(defn datatable-sort-cols [sort-col users]
(if-let [sort-fn (get column-sorts sort-col)]
(sort-by sort-fn users)
Please sign in to comment.
Something went wrong with that request. Please try again.