Fix sorting issue with cubefilelist.py