supposing your game had 200 sprites
at the beggining of your program i'd have something like:
dim spritepriority(200)
then in your program make your own sprite making function something like:
function mysprite(spriteno,x,y,image,priority)
sprite spriteno,x,y,image,priority
spritepriority(spriteno)=priority
endfunction
then in your main loop every time you make a sprite use your own sprite function
eg this would make a sprite 10 with image 5 at 100,100 with priority 3:
mysprite(10,100,100,5,3)
now if you need to find the priority of sprite 10 you just look in spritepriority(10).

The word "Gullible" cannot be found in any English Dictionary.