I have this data:
[{\"id\":\"42\",\"firstname\":\"Sarah\",\"lastname\":\"Dilby\",\"age\":\"40\",\"cars\":\"Yaris\"}, {\"firstname\":\"Jason\",\"lastname\":\"
You don't have to modify your JSON. You can pass a function to orderBy filter like this:
$scope.sorterFunc = function(person){ return parseInt(person.id); }; {{person.id | number}} {{person.firstname}} {{person.lastname}} {{person.age | number}} {{person.cars}}