company-capf: Perform sorting before prefix adjustment