Compares two adjacent elements and swaps if the first element is greater than the other one .
while ( curr . next != None ) : NEW_LINE INDENT temp = curr . next NEW_LINE while ( temp != None ) : NEW_LINE INDENT if ( temp . data < curr . data ) : NEW_LINE INDENT t = temp . data NEW_LINE temp . data = curr . data NEW_LINE curr . data = t NEW_LINE DEDENT temp = temp . next NEW_LINE DEDENT curr = curr . next NEW_LINE DEDENT