
Implement a function that reorders the nodes of a linked list according to a comparator you receive as a parameter.
sort_list([91 -> 34 -> 57], ascending)[34 -> 57 -> 91]ascending(a, b)returns non-zero when `a <= b`sort_list.c
Run the tests to grade your code
Implement a function that reorders the nodes of a linked list according to a comparator you receive as a parameter.
sort_list([91 -> 34 -> 57], ascending)[34 -> 57 -> 91]ascending(a, b)returns non-zero when `a <= b`sort_list.c
Run the tests to grade your code
Memory will appear here