Cognizant interview question

What is the difference between cluster by and sort by