Now SORT_TYPE_XXX has been come back to C world.

Make sure to correspond with enum definitions.