How to sort an array of objects by index inside each object?

Solitario

New Member
I have an array of objects, each object has an index: object->index, which is a positive integer.I have a second array, each entry is an index, corresponding uniquely to one of object->index. I want to sort the first array of objects so that they are in the same order as the order of the second arrays indexes.Does that make sense?Thanks.
 
Back
Top