[evgeny, pawel] compareProperty function