In jQuery è semplice disporre gli elementi in ordine alfabetico.
La soluzione è la seguente:
(function( $ ) {
$(function() {
$( ".box", "#wrapper" ).sort(function( a, b ) {
return $( a ).text() > $( b ).text();
}).appendTo( "#wrapper" );
});
})( jQuery );