ccc,cctools.py: improve cctools list sort