I know this really should only be about Java but I have a small issue involving the sorting of linked lists. C# is quite similar to Java(as i understand) and I was wondering how one could go about sorting a linked list. I've created a blank list(to copy to), and started an algorithm, how can <T> list be sorted??
private LinkGen<T> list;
public void Sort()
{
LinkListGen<T> newList = new LinkListGen<T>();//new blank list
while (list != null)
{
if (list == null)
{
newList.AppendItem(list.HeadList);
}
else
{
}
list = newList.list;
}

