added check of sort property