I\'m trying to create a somewhat complex sorting feature which neither uses divs nor lists. Unfortunately two hours of googling didn\'t help me.
Here is the basic s
Try these comparison functions instead:
function sortAscending(a, b) { return $(a).find("h3").text() > $(b).find("h3").text() ? 1 : -1; }; function sortDescending(a, b) { return $(a).find("h3").text() < $(b).find("h3").text() ? 1 : -1; };