diff options
author | Rich Hickey <richhickey@gmail.com> | 2008-06-24 16:37:37 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2008-06-24 16:37:37 +0000 |
commit | 7f6eadb2000d047487e316077d3462dad8b87bd0 (patch) | |
tree | c37e380d50d339802ce2c1e6774bb8237334cc8d /src | |
parent | 9bce1a52cd2a6ac7c2bb3c3bed57b8f39b9dfc86 (diff) |
fixed sort-by regression
Diffstat (limited to 'src')
-rw-r--r-- | src/boot.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot.clj b/src/boot.clj index e3d42473..8b9cc4de 100644 --- a/src/boot.clj +++ b/src/boot.clj @@ -1279,7 +1279,7 @@ not-every? (comp not every?)) supplied, uses compare. comparator must implement java.util.Comparator." ([keyfn coll] - (sort-by compare coll)) + (sort-by keyfn compare coll)) ([keyfn #^java.util.Comparator comp coll] (sort (fn [x y] (. comp (compare (keyfn x) (keyfn y)))) coll))) |