Sort algorithm now refers to correct property