add validation of sorted data elements