Collapse qsort and bseartch.