sorting mechanism put inside FaceRecognizer class