@dhd, this post discussed previously should also be helpful for you to understand how to use the position() function.
position()