I am creating an app with angularjs which receives data from 2 api's and creates a chart with smart-table for cryptocurrency data.
I am currently stuck on trying to sort the data in my table using smart-table beacuse the data i recieve from the JSON is string type ( value, % change , and so on)
Here is an example of the JSON that I want to convert certain objects to string type (value,change,rank...) json file
How can i convert certain objects in my JSON to be numbers instead of string so smart-table sorting will work properly. It currently sees all the values as strings and sorts as follows:
9999$
9$
889%