Testing an array of objects against each other

Hi,

I have a new flash with several objects(classes) created in as3.

They are called Ball1,Ball2,Ball3 and are of type Ball:deathstar:.

I wish to be able to insert them into an array and have the array loop test them all against each other like eg. array*.interact(array[i+1]) and so forth

Additional things I’ld like are:

[LIST]
[]Making sure an object isnt tested against itself,
[
]removing objects from an array.
[]sorting the array(if neccessary).
[
]adding new objects to the array
[/LIST]

Was wondering if anybody had any experience with this sort of thing you could point me in the right direction.