This is a continuation of a PM I received, I felt it best done in the public's view.
"....so I need to know is there an easy to use VLSP to make a selection set of the (0 . "attrib") - All I am looking to do if "grab" them all and then sort a display order when embedded in an XREF. I'm using R2006."
<snipped out the code>
AFAIK......
Attribute references cannot be obtained by a selection set, nor can their Draworder be changed independently of the insert they are attached to. You cannot select objects, of any type, within Xrefs to be used in the Draworder.
I don't know if the problem in R2002 of Xref's Draworder not being recognized has been fixed in 2006, but if it has then adjust the Xref drawing before importing into the parent drawing.
If anyone knows anything that says I'm wrong about these things, I'd be happy to hear it.