fixed sorting error - was sorting by string instead of float