I think he wants to know how to figure out that the letters are in the correct order, physically, means, when the items are in the correct physically order.
I'd use vec_dist for that.