I\'ve got html that looks something like this:
Price:20
-
Use my jquery plugin SortContent :
$('#sortThis').sortContent({asc:true});
You can use helper to sort according to the suitable conten that you want.
$('#sortThis').sortContent({asc:true,helper:function(e){return $(e).find('.price').html()}})
if you want to reverse order ,set false
to asc
option
Another note, you can select directly children of div instead of parent: It is the same :
$('#sortThis>div').sortContent({asc:true,helper:function(e){return $(e).find('.price').html()}})
DEMO :
http://jsfiddle.net/abdennour/ytmry/