Added functions and test cases for:
	*Comparing the records.
	*Sorting the records.