I have built an object in PHP, used JSON_encode function and send it as a JSON string to my JS script via ajax. Then I convert it back to an object. The problem I am havin
Just cycle through your data and sort it. I'm not using the most efficient sorter but the ideas is there.
var data = toArray(AJAX_Returned_JSON); // function to convert object to array var sortedData = null; for(var i=0; i