An easy method is to use a text variable to store the sequence. For example, it can be a list of animation frames - "310". Which means that first you need to click sprite instance with frame 3, then 1, then 0.
As player is clicking the sprites, save clicked frames in another variable:
Set Result to (Result & Sprite.AnimationFrame)
And once two variables are equal, this means that the sprites were clicked in the correct order.