Why do you need to sort a linked lists? They are the worst possible structure to use for sorting.
Other than that, you would sort it the same way you would sort anything else. Please be more specific about what you are having trouble with.
If possible, take @anup30's suggestion below and use a standard library container. (Linked lists are not very useful in C++, especially for primitive types)