Implement _comparePathsByTime.