I am working on Angular project where I want to short players by playerCreditPoint in desending order from below json
0: {playerName: "Imran Tahir", country: "Dolphins", playerCreditPoint: "1.50"}
1: {playerName: "xyx", country: "Dolphins", playerCreditPoint: "6.50"}
2: {playerName: "abc", country: "Dolphins", playerCreditPoint: "4.50"}
3: {playerName: "def", country: "Dolphins", playerCreditPoint: "11.50"}
4: {playerName: "mno", country: "Dolphins", playerCreditPoint: "10.50"}
5: {playerName: "pqr", country: "Dolphins", playerCreditPoint: "9.50"}
for that I am using pipes
<div class="all_players" *ngFor="let player of players | orderBy :player; let pIndex = index">
But it is not working as giving error The pipe 'orderBy' could not be foundAngular