Compare timestamps instead of strings