Fix SortList test wrapper

Turns out passing strcmp to qsort isn't possible. Added a wrapper.