Lexicographic sort.