Im trying to use the sortOn function on an array that used to contain an Object with a bunch of ‘fields’ at each index, but then for other reasons i saw the benefits of storing Movie Clips in the array instead, the movie clips themselves have variables, which can now be accessed as follows
movieClipArray[n].variableName
but now the sortOn() function doesnt work, im assuming cause the movie clips stored in the indices of the array dont count as an object with fields? or is it cause the movie clips variables dont count as properties? i assumed that a movie clip is an object but i have a bad feeling sortOn wont work no matter what i do…
can someone prove me wrong :hoser:?