It seems stock function changeItemsWeight() can be used to sort by color (suit) or value. I have this working with a single deck of standard 52-cards. I can sort by value or I can sort by color. It works well.
However, can it be used when there are 2 or more decks of identical cards? I want to be able to pull out 1 of the duplicate cards and let the player move it elsewhere in their hand. For example the players hand is:
(h = hearts, c = clubs, d = diamonds)
5h, 6h, 6h, 7h, 8h, 6c, 6d
I want the player to be able to move 1 of the 6-of-hearts to sit with the other sixes. So, they want to see this:
5h, 6h, 7h, 8h, 6c, 6h, 6d
But I cannot see how to do it with changeItemsWeight(). It Ideas? Thanks!
However, can it be used when there are 2 or more decks of identical cards? I want to be able to pull out 1 of the duplicate cards and let the player move it elsewhere in their hand. For example the players hand is:
(h = hearts, c = clubs, d = diamonds)
5h, 6h, 6h, 7h, 8h, 6c, 6d
I want the player to be able to move 1 of the 6-of-hearts to sit with the other sixes. So, they want to see this:
5h, 6h, 7h, 8h, 6c, 6h, 6d
But I cannot see how to do it with changeItemsWeight(). It Ideas? Thanks!