I have two UL with list items,  

they have the same attribute, as example data-id. But when page is loading, they are not append to the same UL.

So, I need some way to move it correct.
Probably it's strange description,  

example:

```
<!-- HOW IT LOOKS AFTER PAGE LOAD -->
<ul data-id="first_ul">
   <li data-id="first_ul"></li>
   <li data-id="second_ul"></li>
   <li data-id="second_ul"></li>
</ul>

<ul data-id="second_ul">
   <li data-id="first_ul"></li>
   <li data-id="second_ul"></li>
   <li data-id="first_ul"></li>
</ul>

<!-- HOW IT SHOULD LOOKS AFTER SCRIPT'S WORK -->
<ul data-id="first_ul">
   <li data-id="first_ul"></li>
   <li data-id="first_ul"></li>
   <li data-id="first_ul"></li>
</ul>

<ul data-id="second_ul">
   <li data-id="second_ul"></li>
   <li data-id="second_ul"></li>
   <li data-id="second_ul"></li>
</ul>

```

Thank you for any advice!