Objective
Implement a function that reorders the nodes of a linked list according to a comparator you receive as a parameter.
Steps
$ sort_list([91 -> 34 -> 57], ascending)
[34 -> 57 -> 91]
$ ascending(a, b)
returns non-zero when `a <= b`
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Implement a function that reorders the nodes of a linked list according to a comparator you receive as a parameter.
Steps
$ sort_list([91 -> 34 -> 57], ascending)
[34 -> 57 -> 91]
$ ascending(a, b)
returns non-zero when `a <= b`
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code