How to get rank or Order of workitems
Accepted answer
As far as I am aware, the rank is information maintained in the plan and not in the work item. There is no work item attribute that you can access. There used to be an old rank information in the work items, but that information did also not allow to understand the work items position in a plan.
There is no public API I am aware of for plans.