Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

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

Open
TwiceII opened this issue Aug 21, 2018 · 1 comment
Open

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

TwiceII opened this issue Aug 21, 2018 · 1 comment

Comments

@TwiceII
Copy link

TwiceII commented Aug 21, 2018

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants