STL sort 연산을


배열의 값자체가아니라 


포인터배열들이 가르키고잇는 값을 기준으로 정렬하고싶은데 이게 어렵네


bool tmp(const int& tmp1,const int& tmp2)

{

if(*tmp1 < *tmp2) return true;

else if(*tmp1 == *tmp2)

{

*tmp2=INF;

return *tmp1 < *tmp2;

}

else return false; 

}



어떻게해야할가 으으음