linked list insertion sort in c
问题 the program should do the insertion ascending sort for the nodes,first it should check the names and if the names are equal it should sort the ids,i do not know what is the issue that does not sort properly. # include <stdio.h> # include <string.h> # include <stdlib.h> typedef struct nd{ int id; char name[20]; float gpa; struct nd *next; }node; typedef node *list; //--------------------------------------------------------------- int insertlist(list *head,char *buffer) { list p,q,n; int m,num