alphabetize by background url
<p>Trying to adapt this to alphabetize by a href url, instead of the a href text...</p>

<p>Javascript</p>

<pre><code>function sortUsingNestedText(parent, childSelector, keySelector) {
var items = parent.children(childSelector).sort(function (a, b) {
    var vA = $(keySelector, a).text();
    var vB = $(keySelector, b).text();
    return (vA &lt; vB) ? -1 : (vA &gt; vB) ? 1 : 0;
});
parent.append(items);
}

$(function () { sortUsingNestedText($('.searchresults'), "div", ".title a"); });
</code></pre>

<p>HTML</p>

<pre><code>&lt;div class="title"&gt;&lt;a href="../url/thisiswhatiwantsorted/default.html"&gt;Link&lt;/a&gt;&lt;/div&gt;
</code></pre>
