How the comparison is done in PersonCompare class?

How is the comparison is done in the PersonCompare class?

Actually, I am not able to understand, how the comparison is done on the basis of “A.age > B.age” line.

@siddharth_1_3277 Yes it can look confusing at first.
But in general,
for comp(A , B)
if you want to sort any thing in increasing order you put A.x < B.x.
if you want to sort any thing in decreasing order you put A.x > B.x.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.