Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230835

Ionic 3 how to seperate sort array

$
0
0

Try the following:

 //sort api to points
this.points = JSON.parse(JSON.stringify(this.dataLeaders));
let pointsL =  this.points.sort(function(a, b) {
          return parseInt(b.sPoints) - parseInt(a.sPoints);
      });

Viewing all articles
Browse latest Browse all 230835

Trending Articles



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