Box2DX.Collision.PairManager.BufferedPairSortPredicate C# (CSharp) Method

BufferedPairSortPredicate() public static method

public static BufferedPairSortPredicate ( BufferedPair pair1, BufferedPair pair2 ) : int
pair1 BufferedPair
pair2 BufferedPair
return int
		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;
		}
	}