Add lexicographical sort test