proto-repl icon indicating copy to clipboard operation
proto-repl copied to clipboard

Incorrect order of keys in sorted-map evaluation result

Open TwiceII opened this issue 6 years ago • 1 comments

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.

TwiceII avatar Aug 21 '18 07:08 TwiceII

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"])

tobias-hammerschmidt avatar Dec 06 '18 08:12 tobias-hammerschmidt