How to find idexes of points in nested list

Hello, I am having trouble finding the indexes of points that I sorted. I want to get the indexes so I can sort the cooresponding rectangles that correspond to these indexes. Any one know how to do it?

I think you just need to use list levels and switch your inputs.

@erfajo So am I reading this correctly, that each number in each sublist corresponds to the “parent” list that the item is found in, with the last index in each sublist being the actual item that I am looking for in that list?
like this:

Do you have a node that works with this IndexOf node that will replace items or Get items at these index locations, defined by this list structure?