What is the proper way to sort a linked list. This was all I could think up.
Code:int change = 1; while ( change ) { change = 0; current = start; next = current->next; do { if ( current->data > next->data) { swapping code goes here;;; change=1; } current = current->next; next = current->next; } while ( current->next ); }