The API says that the selection array is not necessarily in the same order as the users selects them. In my limited tests its seems that the selected items are in the order in which they were created no matter how the user selects them.
I working on a script where user can select any number of objects in advance, but I need to know which one he selects first. Is there any way of doing this without requiring 2 selection operations (the first one being limited to one object)?
I prefer simple commands that operate on already selected objects.