generative modeling for Rhino
I'm wondering what is the easiest way to filter and sort a set of real numbers by their value while keeping their original index number. The purpose of the exercise is to pick certain objects out of a larger set based on some attributes, and then be able to find them in the original list, using the index number.
Here is the example: I created a large set of geometries. then I created a list from their volumes. My approach was to take this list and use "Dispatch" tool to filter and then rank results. First problem; I don't know how exactly I should write the expression for F(x) that filters results for " x < 10000 ". Second I don't know how to keep the original index numbers in the two resulting lists. I would like these original indexes to refer to the same values even after I sort them by their value.
I appreciate any help.
there's two common ways to approach this.
Thanks David. I tired the first method and it worked beautifully.