Correcting order of sort for group clustering and identity threshold acceptance