Fork me on GitHub
#hyperfiddle
<
2022-05-28
>
nottmey11:05:40

Photon Observation: The sorting of maps ist lost here. This seems to be a behavior of dom/for .

(p/defn DataViewer [title maps]
  (let [ks (u/all-keys maps)]
    (dom/h1 (dom/text title))
    (dom/table
      (dom/thead
        (dom/for [k ks]
          (dom/td (dom/style {"min-width" "5em"}) (dom/text k))))
      (dom/tbody
        (dom/for [m maps]
          (dom/tr
            (dom/for [k ks]
              (dom/td (dom/text (m k))))))))))

1
Dustin Getz11:05:00

thanks - this is fixed in a feature branch and in test, landing asap

👌 1