def CompareEntityPbByKey(a, b):
 return cmp(datastore_types.Key._FromPb(a.key()), datastore_types.Key._FromPb(b.key()))

def CompareEntityPbByKey ( a , b ) : return cmp ( datastore_types . Key . _FromPb ( a . key ( ) ) , datastore_types . Key . _FromPb ( b . key ( ) ) )
compare two entity protobufs by key .