Data validation functions introduced.

ascending descending comparision.
compare string fixed.
COUNT function introduced.