fix  class sort issue