# How to arrange node in order?

**URL:** <https://forum.graphviz.org/t/how-to-arrange-node-in-order/1303>\
**Category:** Help\
**Created:** [September 5, 2022, 8:49am UTC](https://forum.graphviz.org/t/how-to-arrange-node-in-order/1303 "2022-09-05T08:49:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayurw](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mayurw](https://forum.graphviz.org/u/mayurw)\
**Post date:** [September 5, 2022, 8:49am UTC](https://forum.graphviz.org/t/how-to-arrange-node-in-order/1303/1 "2022-09-05T08:49:06Z")

</div>

I am trying to position the nodes in the order without using the “pos” argument. The syntax i am using for generating the subgraph is as  
Follows:  
ranksep=0.7  
subgraph cluster {  
label=p  
labelloc=t  
{  
rank=same  
“A”  
“B”  
“C”  
}  
}

And getting this output:

 ![image2](https://global.discourse-cdn.com/graphviz/original/1X/0228be18f030e627685b4ec4f8e7acdf064533fe.png)

I am expecting to get the output in this order

 ![image1](https://global.discourse-cdn.com/graphviz/original/1X/fb5a68503ac043b3e9afa31077022d7fe2ff4b35.png)

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [September 5, 2022, 2:50pm UTC](https://forum.graphviz.org/t/how-to-arrange-node-in-order/1303/2 "2022-09-05T14:50:15Z")

</div>

Please include all the text of your graph file.  
But yes, this is a real problem. I think there are outstanding issues in this space.  
Sometimes it helps to list the nodes in the _reverse_ order you want them to appear - `B C A` in this case.
