Hi i have an array of objects
cards = [
{ Asset: "2C.jpg",
CardName: "2C",
CardPlayed: 0,
Playbell: 0,
PlayerName: "player1",
Rank: 2,
Suit: "C"
},
{ Asset: "9S.jpg",
CardName: "9S",
CardPlayed: 0,
Playbell: 0,
PlayerName: "player2",
Rank: 9,
Suit: "S"
},
{ Asset: "6D.jpg",
CardName: "6D",
CardPlayed: 0,
Playbell: 0,
PlayerName: "player1",
Rank: 6,
Suit: "D"
}];
and i need to sort those objects base on Suit property but only for the object that have the PlayerName property value equal to "player1" and many thanks in advance for any help.