Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Sorting an array in ascending order

Nivedita3
Tera Contributor

Hi All,

 

How to sort an array consisting of values [$250,000 - $1000,000, $75,000 - $250,000, >$1000,000]in ascending order??

The value should look something like  [$75,000 - $250,000, $250,000 - $1000,000, >$1000,000].

 

Tried using sort() not working also tried using orderBy that does not seem to be working as well.

 

Any help would be appreciated.

 

Regards,

Nivedita

 

0 REPLIES 0