I have the following structure as an Linked List

struct x
{
int wins;
int loss;
stuct x *next;
};

after entering data i want to sort the linked list in descending order of wins and ascending order of loss.

ie if more than 1 team is having same wins it should be based on loss in that case.


Please help me.