Im using youtube json api and it returns the viewcount as a string, but i need to sort it as an number. How could i do this without going thru the whole model and converting strings to ints?
json snippet
yt$hd: Object
yt$statistics: Object
favoriteCount: "0"
viewCount: "1443"
__proto__: Object
and im invoiking sorting like
orderBy:'yt$statistics.viewCount'