How to add jquery selections together without sorting in DOM order
<p>I have a jQuery element, I'd like to search all of it's next siblings looking for a possible match and if that fails search all the previous ones.</p>

<p>I would have thought I could do something like:</p>

<pre><code>myDiv.nextAll("li").add(myDiv.prevAll("li")).each(function()
{
     if (match) { return this; }
}
</code></pre>

<p>However, this does not work. When I call jquery Add it seems to sort the collection in the order they appear in the DOM meaning that I always go back to the first matching element. I can't think of a simple way to fix this, any ideas?</p>
