What's the problem with my code,it's giving wrong anwers

@sattyrajpoot39 hey satyam you don’t need to declare sort function you can use this line of code
void insertionlink(node*&head){
node * insert=head;
node * current=head->next;
while(current!=NULL){
insert=head;
while(insert!=current){
if(insert->data>=current->data){
int temp=current->data;
current->data=insert->data;
insert->data=temp;
}
else{
insert=insert->next;
}
}
current=current->next;
}
}

i have modified,but still not working

@sattyrajpoot39 hey satyam this the right approach you can see this