sorting of properties & bugfix for ref #65