Sorting blocks on a page

I would love to be able to sort blocks like you can in Roam, or at least to be able to set the sort order of a block using CSS.

For example, it would be great to be able to have items marked DONE automatically sort to the bottom of all other blocks on the same level. I tried messing with making .block-children a flexbox, so I could do this using the order property, but it caused all sorts of other layout issues, so I didn’t pursue it too far.