Positional And Directional Word Sort