Here is the python program to sort a linked list using the insertion sort algorithm:

```python
# Node class to create linked list
class Node:
    def __init__(self, data):
        self.data = data
        self.next = None

# Linked List class to perform linked list operations
class LinkedList:
    def __init__(self):
        self.head = None

    # Function to insert a new node at the beginning of the linked list
    def push(self, data):
        new_node = Node(data)
        new_node.next = self.head
        self.head = new_node

    # Function to sort the linked list using insertion sort
    def insertion_sort(self):
        if self.head is None or self.head.next is None:
            return self.head
        
        current = self.head.next
        
        while current is not None:
            value = current.data
            prev = current.prev
            
            while prev is not None and prev.data > value:
                prev.next.data = prev.data
                prev = prev.prev
            
            if prev is None:
                self.head.data = value
            else:
                prev.next.data = value
                
            current = current.next
        
        return self.head

    # Function to print the linked list
    def print_list(self):
        temp = self.head
        while temp:
            print(temp.data, end=" ")
            temp = temp.next
        print()

# Driver code to test the program
if __name__ == '__main__':
    # Create a linked list
    linked_list = LinkedList()

    # Insert nodes at the beginning of the linked list
    linked_list.push(5)
    linked_list.push(3)
    linked_list.push(10)
    linked_list.push(2)
    linked_list.push(8)

    # Print the unsorted linked list
    print("Unsorted Linked List:")
    linked_list.print_list()

    # Sort the linked list using the insertion sort algorithm
    linked_list.insertion_sort()

    # Print the sorted linked list
    print("\nSorted Linked List:")
    linked_list.print_list()

```

This program takes an unsorted linked list and uses the insertion sort algorithm to sort the linked list.
Ordina un elenco collegato utilizzando l'ordinamento per inserzione. Scrivi un programma Python per farlo.