gcylc: fix logfile sorting above 10 retries
Merge pull request #898 from benfitzpatrick/gcylc.fix-logfile-sorting

gcylc: fix logfile sorting above 10 retries