Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

As per CLJ-2417 (in Clojure v1.10.0-beta4 and up), ClojureScript should retain metadata when sorting a collection.

2 Answers

0 votes
by

Comment made by: tmulvaney

I'd like to double check that in the case where the collection is empty it is supposed to return an empty list with no metadata?

For example in Clojure 1.10.0-RC4 {{(meta (sort (with-meta [] {:meta :data})))}} returns an empty list with no metadata, whereas I'd have expected (maybe wrongly) an empty list with metadata.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-3009 (reported by tmulvaney)
...