* refactored findAndEnableNextTasksDue to accept a comparison operator