hey guys Im trying to sort and array by a price ('total_price')
here is what my array looks like...but obviously there are more items
here is my script ive started to make
$(document).ready( function ()
{
var data = <?php echo $data; ?> ,
limit = '10' ;
$.each(data, function ()
{
$( "#table" ).append( '<div class="row"><span class="cell">' + this .title + '</span><span class="cell">' + this .price + '</span><span class="cell"></span></div>' );
});
});
what I need is to sort the data ascending and descending by total price....any help on how I could do this would be greatly appreciated...thank you