Apply date ordering unless keywords are blank