original_docstring: Compare two entity protobuf's by key.
  
    Args:
      a: entity_pb.EntityProto to compare
      b: entity_pb.EntityProto to compare
    Returns:
       <0 if a's key is before b's, =0 if they are the same key, and >0 otherwise.
    
docstring: Compare two entity protobuf's by key.
docstring_tokens: Compare two entity protobuf ' s by key .
code: def CompareEntityPbByKey(a, b):
    """Compare two entity protobuf's by key.
  
    Args:
      a: entity_pb.EntityProto to compare
      b: entity_pb.EntityProto to compare
    Returns:
       <0 if a's key is before b's, =0 if they are the same key, and >0 otherwise.
    """
    return cmp(datastore_types.Key._FromPb(a.key()),
               datastore_types.Key._FromPb(b.key()))
code_tokens: def CompareEntityPbByKey ( a , b ) : return cmp ( datastore_types . Key . _FromPb ( a . key ( ) ) , datastore_types . Key . _FromPb ( b . key ( ) ) )
short_docstring: Compare two entity protobuf's by key.
short_docstring_tokens: Compare two entity protobuf ' s by key .
comment: """Compare two entity protobuf's by key.
  
    Args:
      a: entity_pb.EntityProto to compare
      b: entity_pb.EntityProto to compare
    Returns:
       <0 if a's key is before b's, =0 if they are the same key, and >0 otherwise.
    """