I'm trying to sort divs using jQuery, it does sort, but does not seems sorting properly.

This is after applying sort
here is HTML snippet.
<div class="container column">
<div class="row">
<section class="col-md-10 col-md-offset-3">
<section class="col-md-2 col-md-offset-1"><a href="./stafferLink/index.php" >Staffer Link</a></section>
<section class="col-md-2 col-md-offset-1"><a href="./stafferLink/view.php">View Data</a></section>
</section>
</div>
</div>
and jQuery
var $divs = $(".container.column");
$(document).ready(function () {
var alphabeticallyOrderedDivs = $divs.sort(function (a, b) {
return $(a).find("a:first").text() > $(b).find("a:first").text();
});
$("#container").html(alphabeticallyOrderedDivs);
});
PS: #container is outermost div that contains all divs that need to be in order.
sorry, not responsive