This might be clearer if you use
Twitter.
In Twitter, if you post a message, your message slides into the message list. Also, if you click Home (Sidebar), it will find new tweets and merge it into the message list. What I want to know is
how do you make it so that jQuery will merge lists together + sort them AND remove older messages afterward.
E.g: Current list:
<li value="100">abc</li>
<li value="68">abc</li>
<li value="32">abc</li>
<li value="5">abc</li>
Queried new:
<li value="80">bcd</li>
New list should become:
<li value="100">abc</li>
<li value="80">bcd</li>
<li value="68">abc</li>
<li value="32">abc</li>