Simple question - hard to answer, by my experience:
I have element E and I'm appending to it some elements to it. All of a sudden, I find out that next element should be first child of E. What's the trick, how to do it? Method unshift doesn't work because E is an object, not array.
Long way would be to iterate trough E's children and to move'em key++, but I'm sure that there is prettier way.
No?