Diagram.SelectedParts by order in GraphLinksModel

Hi,

I create a Diagram Base on GraphLinksModel.
I want to if there is a way to get the selected Parts in the order they are located in the Graph instead of the order the user selected them.
If the user select Action 3 and then Action 1 and last Action 2,
When I access the Diagram.SelectedParts I will get them by order 3,1,2 and I want to get 1,2,3.

is there a way to get them by the order of the graph?

thanks

You could copy the Diagram.SelectedParts that are Nodes into a List and then sort them, comparing by Node.Location.Y.

Great idea.

Thanks.