+ Add Question

Different order of the elements in a filter gives different results...

RK

When defining a filter with different elements, like 'overdue' and '14 days' it matters a lot in what order the appear in the filter.

These two examples yield completely different results and it bothers me.

@tag, overdue, 14 days
- it doesn't show the overdue tasks like this filter does neatly: "overdue, 14 days"

overdue, @tag, 14 days
- shows overdue tasks first, then all items tagged @tag en after all items due the following 14 days.
- This is the filter I would like, except the first two elements swapped...

This is not by design, I presume??

Thanks!

All responses

RK
Rein Ketelaars premium
Replied on May 27, 2013 - 04:40

This filter yields exactly the results I'm looking for:

@tag | overdue, (overdue, 14 days)

It shows the overdue items only once. When I remove either one of the 'overdue' items in the filter, it goes wrong.

Odd.

RK
Rein Ketelaars premium
Replied on May 27, 2013 - 04:48

Answer:

There need to be spaces between all elements and the commas...
like this:

overdue , @tag , 14 days

David Trey staff
Replied on May 27, 2013 - 06:50

Hello Rein,

Yes, the order of the queries can influence the order of the results in some cases.

Please let me know if you need further assistance with certain queries and if so - what results do you want to see.


Best regards,
David

RK
Rein Ketelaars premium
Replied on May 27, 2013 - 07:02

My point, is that the order of elements influences not only the order of the items in the results, but also the presence / abcense of items!
adding a space before a comma has also a significant effect.

My example queries:
@tag | overdue, (overdue, 14 days)
@tag, overdue, 14 days
@tag , overdue , 14 days
overdue, @tag, 14 days

Have all different and sometimes unexpected results!

David Trey staff
Replied on May 27, 2013 - 07:22

Thank you for clarifying. The term "overdue" (or "od") is a bit "special" and to work always correctly, it should be put at the front of the query. Also, the comma works fine just with date-related searches such as "today, tomorrow" or "today, Friday", but combining it with labels is not recommended, please use | or & instead and see how it influences the search.

If you find inconsistencies between searches using these operators, please let us know and we'll look into it.


Best regards,
David