Qsort gotcha: pointer difference is *not* a proper order unless computed in N+1 bits. Use explicit comparison instead.