fix various sorts
hasPoly index