fix channel sort