print only lines in lexicographic order to prevent subsets and multiple lines on a given run