I have something like this:
<div class="list-group list">
<a href="blabla" id="1" data-order="1">Hello</a>
<a href="blabld" id="2" data-order="2">World</a>
</div>
No I try to change the order of the links dynamically with plain Javascript.
Does anyone have any suggestion, how to do so?
My Goal is this:
<div class="list-group list">
<a href="blabld" id="2" data-order="1">World</a>
<a href="blabla" id="1" data-order="2">Hello</a>
</div>