Selection sort for linked list by swapping nodes
The assignment is to use selection sort by swapping nodes, not the values. When sorting algorithm changes the last node, it raises AttributeError, because it seems that first.next in def min_sort()
does not seem to change and is None. Here is the code