Use an array.
Parse it via a function where you set the first parameter to the sprite you are looking for.
function
-For each X
X = function.param(0): set localvariable to array.CurX
function set returnvalue to localvariable
after that access the position of the searched element via function.returnvalue
if you have/expect duplicates, use an array again or save the numbers as string with separators and later on parse it out