There is a similar code:
$.getJSON('http://shop-42251-50.myinsales.ru/collection/tehnika.json', function(data) { data.sort(function(a,b){ return a.data.products.id-b.data.products.id }); }); Writes data.sort is not a function, help me find an error or an article how json sorting is done, please.