how can i give different ranks to same number on the basis of their names as performed by sid in class.