Keeping original hierarchy from group when inserting object into another group

Hi,

Please look at this picture:

http://i39.tinypic.com/2wg63d4.png

In the first segment all the cards are nicely in order, in the second segment the card is another into another group and sorted and drawn out nicely but in the third segment I want the card to remain or go back to the original group order.

I tried running this code where the id is the order of the card and group the actual name of the group:

assert( (group[burnedCards[i].id] == burnedCards[i]) )

Can anyone help me with this?

Thanks in advance,

Best regards,

Tomas

I never solved my problem as I wanted. Right now I regroup all the cards when they are moved and it works and I haven’t seen any performance issues but I haven’t tested a lot either.

Best regards,

Tomas

I never solved my problem as I wanted. Right now I regroup all the cards when they are moved and it works and I haven’t seen any performance issues but I haven’t tested a lot either.

Best regards,

Tomas