Home How to sort string numbers which consist of 3 point?
Reply: 0

How to sort string numbers which consist of 3 point?

user526
1#
user526 Published in April 24, 2018, 8:24 am

I have an array which consists of String numbers which consist of 3 point such as "1.452", "11.3.2","12".

For example if I sort this array

$scope.myArray=["11","14.2","9.2.1","5.6.3","0.9","6.7.2","2","1"];

I want to see this array like so

0.9,

1,

2,

5.6.3,

6.7.2,

9.2.1,

11,

14.2

I want to sort these values in descending order. How can I do this with AngularJS ?

Thank you in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.383903 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO