Modified it to specify the compare function when creating list. NULL compare function means unsorted list. This also allows a user to create a priority queue