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;