Page 1 of 1
Sort by Custom Property
Posted: Mon May 09, 2011 7:16 pm
by Brittgriscom
I am trying to sort buttons numerically according to the value of a custom property. How do I do that?
Re: Sort by Custom Property
Posted: Mon May 09, 2011 8:55 pm
by jmburnod
Hi,
1. Building a list with 2 items in each lines : NumberOfBtn,CustomProp
2. Sort the list by item 2
And you have a list sorted by the CustomProp of the btns
Correct ?
Best
Jean-Marc
Re: Sort by Custom Property
Posted: Tue May 10, 2011 4:17 am
by dunbarx
Sort buttons? I do not understand what you mean. Sort the layers? Please write back.
Craig Newman
Re: Sort by Custom Property
Posted: Sun May 15, 2011 3:04 am
by Brittgriscom
I am experimenting with the A Star algorithm in the 8-puzzle game explained in the lessons.
What I called buttons are really nodes that the algorithm travels on.
I was trying to sort them according to their F-cost, and I ended up with a solution just like the one above.