ccc: fixed sorting