Open stefan-toubia opened 2 years ago
@stefan-toubia I'm open to a PR for this
I think we can make an explicit sort-map
function that takes a map and sorts it, or a more general sort-alphabetical
that takes a collection. Clojure-lsp has some logic for it which we could borrow:
Here is some more info by @lread on the challenges of sorting a map:
https://nextjournal.com/lread/sorting-maps-by-key-with-rewrite-clj
@lread That code you got there isn't maybe so bad and better than nothing? Maybe I'll just add it and then refine it as we come across issues...
It might be an OK start. @mainej has done a lot more thinking on this than I have.
It would be very useful to be able to programmatically manage
deps.edn
files but it's somewhat of a dealbreaker that we cannot currently maintain alphabetical ordering since the config files should remain human readable as well.