added sort flag to properties