Sort and group properties depnding on name.