Fix CCA component sorting regressions.  Closes #77.