public static int BufferedPairSortPredicate(BufferedPair pair1, BufferedPair pair2)
{
if (pair1.ProxyId1 > pair2.ProxyId1)
return 1;
else if (pair1.ProxyId1 < pair2.ProxyId1)
return -1;
else
{
if (pair1.ProxyId2 > pair2.ProxyId2)
return 1;
else if (pair1.ProxyId2 < pair2.ProxyId2)
return -1;
}
return 0;
}
}