added lexicographical comparison for sequence types