I read that :
whenever a collection need to be sorted, the elements must be mutually comparable.
I wrote the below code and it
It means that for any two items in the collection, you must be able to compare A to B and vice versa.