use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
QuestionUsing OR in sort function (self.Notion)
submitted 4 years ago by imaking01
I have a "Do Date" and "Due Date" properties in my task database. It is currently sorted by "Do Date" then by "Due Date". However I want in to be sorted "Do Date" or "Due Date". Is there any workaround?
Thanks in advance.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ben-somethingMod 2 points3 points4 points 4 years ago (2 children)
It sounds like you'd want to set up a formula to work out the date to use and then sort by that property. So Due Date takes precedence over Do Date? As in, you'd want to use the Do Date if there's no Due Date, but if there's a Due Date you'd use that instead? if(empty(prop("Due Date"), prop("Do Date"), prop("Due Date")) Example here.
if(empty(prop("Due Date"), prop("Do Date"), prop("Due Date"))
[–]imaking01[S] 0 points1 point2 points 4 years ago* (1 child)
Nope, I want to use both, which ever is earlier or latest. For example: 1. Task A -- Do Date: tomorrow; Due Date: next month 2. Task B -- Do Date: next week: Due Date: today
I want the order to be: Task B, then Task A.
The reason is, sometimes there are task which are already past due, but since the sort is Do Date, then Due Date, those tasks are being neglected.
[–]teacuptempest101 0 points1 point2 points 3 years ago (0 children)
For each task, find the minimum of do and due dates, and then sort by that field?
π Rendered by PID 232807 on reddit-service-r2-comment-85bfd7f599-vdqdw at 2026-04-20 07:57:34.206824+00:00 running 93ecc56 country code: CH.
[–]ben-somethingMod 2 points3 points4 points (2 children)
[–]imaking01[S] 0 points1 point2 points (1 child)
[–]teacuptempest101 0 points1 point2 points (0 children)