cands sort issue, still have bug.