jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
563 stars 50 forks source link

Incorrect order of keys in sorted-map evaluation result #311

Open TwiceII opened 6 years ago

TwiceII commented 6 years ago

Using [org.clojure/clojure "1.9.0"], [proto-repl "0.3.1"] and [nrepl "0.3.1"].

I'm getting weird behaviour from evaluating sorted-maps in Proto-repl as you can see on image: bug-sorted-map

Works correctly for numbers, breaks on keywords and strings.

tobias-hammerschmidt commented 5 years ago

Hit the same issue - you can wrap the sorted-map with seq as a workaround:

(seq (sorted-map "c" "c" "a" "a" "b" "b" "d" "d"))

gives

(["a" "a"] ["b" "b"] ["c" "c"] ["d" "d"])