newjsonData.sort(function(a, b) {
return (a.Id - b.Id)
});
oldjsonData.sort(function(a, b) {
return (a.Id - b.Id)
})
In above function I am sorting the json value based on ID and one of the node contains float value which is getting round off.
I am getting this 1.1103391379964032864981076624
value from response and it is getting round off to this 1.1103392
. I don't want round off value I required the original one