fixed getPropertyForIndexing, should fix sorting