Re: [whatwg/dom] Add convenient, ergonomic, performant API for sorting siblings (#586)

The diffing use case sounds interesting, but still not clear to me how in practice an API like is being proposed here solves that use case. (And there is also the [replaceChildren](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren) API...) I would like to focus this issue instead on solving the use case of a visual order sorting of DOM siblings that is easy enough to use that developers will, like @domenic said, [use it instead of CSS order](https://github.com/whatwg/dom/issues/586#issuecomment-371688518
).

The original comment in this issue is really about ergonomics of sorting children, not performance. I'd like the triage meeting discussion this week to focus on this use case, whether it is important enough to support directly in a DOM API, and how best to meet it if so (assuming it's needed, that's how I arrived at [this proposal](https://github.com/whatwg/dom/issues/586#issuecomment-1414457981)).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/586#issuecomment-1419863827
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/586/1419863827@github.com>

Received on Monday, 6 February 2023 22:23:46 UTC