Comment Comment by decadentcactus If it helps, this type of problem has come up precisely zero times ever. Use a built in function, loop through the array, and if in the future it's running slow, _then_ optimise parent decadentcactus 13 years ago