Clear JavaScript solution
\nvar insertionSortList = function(head) {\n    if (!head) return null;\n    let sorted = head;\n    head = head.next;\n    sorted.next = null;\n    while (head
```\nvar insertionSortList = function(head) {\n    if (!head) return null;\n    let sorted = head;\n    head = head.next;\n    sorted.next = null;\n    while (head) {\n        let prev = null;\n        let node = sorted;\n        while (node && head.val > node.val) {\n            prev = node;\n            node = node.next;\n        }\n        let insert = head;\n        head = head.next;\n        insert.next = node;\n        if (prev) {\n            prev.next = insert;\n        } else {\n            sorted = insert;\n        }\n    }\n    return sorted;\n};\n```
['JavaScript']