@namxam.bsky.social

I just discovered, that you can pass a tuple as second parameter to Enum.sort/2. In order to sort dates, it would be Enum.sort(list, {:desc, Date}). Although I would prefer a clever way to sort structs, I get why it is how it is. Now I just have to remember it :D #ElixirLang #til