minor bugfix to the ctime sorting algorithm