Updating comparator to work with a single row sheet