Should probably be CSort::resolveAttribute() to fit with the other way this is done