Collect all nodes into array
access head node
Performs an insertion sort on the node list. In general, insertion sort is very efficient with short lists and with lists that are mostly sorted, but is inefficient with large lists that are randomly ordered.
true if the list is empty, false otherwise.
Performs a merge sort on the node list. In general, merge sort is more efficient than insertion sort with long lists that are very unsorted.
Remove all nodes from list
Swaps the positions of two nodes in the list. Useful when sorting a list.
A signal that is dispatched whenever a node is added to the node list.
A signal that is dispatched whenever a node is removed from the node list.