fix qsort in wormhole code. pointers are hard.