JSFiddle - React, Tailwind, and code Playground
by abdennour
HTML
<script src="http://dl.dropboxusercontent.com/u/55765722/delivred/abdennour/lib/js/underscore/underscore.js"></script>
<script src="http://dl.dropboxusercontent.com/u/55765722/delivred/abdennour/lib/js/underscore/underscore.string.js"></script>
<script src="https://raw.github.com/abdennour/outerhtml/master/src/js/jquery.outerhtml-1.0.js"></script>
<div id="container">
<div id="2">Snd</div>
<div id="9">Nine</div>
<div id="7">Seven</div>
<div id="1">one</div>
<div id="4">Four</div>
</div>
JavaScript
_.mixin(_.str.exports());
$('#container').html(_.sortBy($('#container>div').toArrayouter(),function (name) {return name} ).join(''))