From 334ee71a5af822f34c17cc0d30aaad28eee8b304 Mon Sep 17 00:00:00 2001 From: byplayer Date: Tue, 6 Jun 2017 11:09:14 +0800 Subject: [PATCH] fix condition --- WebApp/src/js/model/todomanager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebApp/src/js/model/todomanager.ts b/WebApp/src/js/model/todomanager.ts index 3a49e91..5994dc4 100644 --- a/WebApp/src/js/model/todomanager.ts +++ b/WebApp/src/js/model/todomanager.ts @@ -179,8 +179,8 @@ module TodoTxtJs if ( left.dueDate().getFullYear() !== right.dueDate().getFullYear() - && left.dueDate().getMonth() !== right.dueDate().getMonth() - && left.dueDate().getDay() !== right.dueDate().getDay() + || left.dueDate().getMonth() !== right.dueDate().getMonth() + || left.dueDate().getDay() !== right.dueDate().getDay() ) { return left.dueDate() < right.dueDate() ? -1 : 1;