Sort list order

Hi , a question about a case mentioned in this thread.

See the example by Dimitar Venkov:

What if my ‘searchFor’ input would not be 1, 3, 5, but 3, 1, 3, 5, and I would like to retrieve the final selection of elements in that order? So the final list being [0] Room 3, [1] Room 1 [2] Room 3, [3] Room 5. Can that be done?

2 Likes

I have found my own solution.

Use node ‘IfEqualReturnIndex’.
Input A = the ‘searchfor’ list {3,1,3,5}
Input B = the room number list
Output node = 2, 0, 2, 4.

Then, get item at index. Voila. Thanks guys :slight_smile:

That also nice @Nick_Boyts. Thanks!