rewrite-clj

Benjamin 2023-04-27T08:22:07.778449Z

Hello, I would like to sort a map but print it prettily and preserve comments. A naive z/edit + z/root-string will effectively prn

Benjamin 2023-04-27T09:29:54.126989Z

thanks a lot

lread 2023-04-27T12:59:31.748819Z

@benjamin.schwerdtner Not sure if it helps you, but there is also map sorting support from clojure-lsp

lread 2023-04-27T13:01:12.267189Z

And @jacob.maine who worked on the clojure-lsp sort, did some https://clojurians.slack.com/archives/C03KCV7TM6F/p1670537958274929?thread_ts=1670537009.720689&cid=C03KCV7TM6F, if you need to go to the next level.

Benjamin 2023-04-27T16:07:18.403919Z

ok nice