Have ms traverse the tree in lexicographical order

Makes the output file look better.