Apply textures accordng to instance index / ID

Thanks to the help of this forum I managed to randomly distribute textures to instances using geometry nodes. Now I need to apply textures to the instances SORTED. Thought this was an easy task - just plug in the “Index” or “ID” node instead of the “random value” and retrieve the stored named attribute in the shader…
But - nope. The setup is identical to the random version (and it works using the random attribute), so I guess there’s something very wrong with my idea of the index or ID…
Could anyone have a look at this, please?

Can anser this myself: used the wrong node tree… : |

Perfectly normal situation :face_with_hand_over_mouth:
When something is broken, but still works according to previously defined logic like this, it’s usually a good hint that you’ve just assigned a wrong material/modifier/target/whatever.

Yes. PEBKAC.
But I really starting having fun with GN.