q_sort mother fucker