Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

Sorting in Javascript Action

$
0
0

I have captured all values to json which is like this:
captured_json=["2.13","1.212","1.313","13.23","20.666"]
when i try to use sort function in java script action like below:
captured_json.sort()
its throwing me an error cant find function sort in object .
I have to find an highest element in an array by sorting from highest to lowest or viceversa here in my case my desired output should be like below:
input: ["2.13","1.212","1.313","13.23","20.666"]
Desired output: ["1.212","1.313","2.13","13.23","20.666"]


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>