Remove superfluous sorting, as it is done already in numpy.unique()