Sort by Custom Property
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 95
- Joined: Wed Mar 30, 2011 10:15 am
Sort by Custom Property
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
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
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
https://alternatic.ch
Re: Sort by Custom Property
Sort buttons? I do not understand what you mean. Sort the layers? Please write back.
Craig Newman
Craig Newman
-
- Posts: 95
- Joined: Wed Mar 30, 2011 10:15 am
Re: Sort by Custom Property
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.
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.