fix KSSTA sort broken by last commit.