i am working on a program.
working with linked lists.
i am using an insort recursively to do an ascending sort.
i have a method called retrieve that retrieves the value of a node.
how would i get started to code this

Code:
void Link::insort1(int nodeNumber)
{
	if (nodeNumber > 1)
	{
		nodeNumber -= 1;
		remove(headPointer->next, headPointer->data);
		int i, j;
		for(i = 0;i < nodeNumber;i ++)
		{
		    ... code help
		}
	}
}