I have a listing of home information in the format below.
<div id="content">
<div class="listing">
<div class="photo"><a href="#"><img src="img.jpg" width="200"></a></div>
<div class="info">
<p class="address"><a href="#">321 Main St<br>Beverly Hills, CA 90210</a></p>
<div class="attr">Price</div>
<div class="val price">$325,000</div>
<div class="attr">Sq. Ft.</div>
<div class="val">2,600</div>
<div class="attr">Built</div>
<div class="val">1988</div>
<div class="attr">Bedrooms</div>
<div class="val">3</div>
<div class="attr">Bathrooms</div>
<div class="val">2.5</div>
</div>
</div>
<div class="listing">{ANOTHER HOME LISTING...}</div>
<div class="listing">{ANOTHER HOME LISTING...}</div>
<div class="listing">{ANOTHER HOME LISTING...}</div>
</div>
Using JavaScript, how do I sort (on price) the listing of homes above.
To give an example, I essentially want to the do the following demo (but not use a TABLE).
http://sam-i-am.com/work/sandbox/dojo0.9/samiam/sortableList.html