Fixed a typo in method name.
Only do the default date based sorting if both items have a date and a title. Otherwise sort based on relative pathname.