counting sort instead of np.argsort in left outer join