If you are using Resource API to get the nodes in order, you can't get that. The node iterator returns nodes the way they are in the repository.
The Query could be a better option.
I think i confused you, actually i want to get the repository order in query.
Now I want order as 1,2,3 in query not in node iteration.
use root node of type sling:OrderedNode so when you list the child nodes under root, you get the order in which the nodes are created (1,2,3)