Creating a list of user-picked elements?

There’s a better approach as described here by Troy Gates:

https://forums.autodesk.com/t5/revit-api/revit-api-selected-element-set-order/td-p/5597203

in ipy that code would look like this: