fix cmc sort