Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong results when ordered by 2 custom labels #4220

Closed
markbj71 opened this issue Aug 31, 2023 · 2 comments
Closed

Wrong results when ordered by 2 custom labels #4220

markbj71 opened this issue Aug 31, 2023 · 2 comments

Comments

@markbj71
Copy link

Trilium Version

0.61.5-beta

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Windows j10 21H2

Description

I just test with 4 notes, with 2 custom lables #year and #month:

  • If just order by 1 single label, it works:
    image

  • if order by 2 labels, the results are wrong:
    image

Actually if I order by 1 lable and 1 note property like note.dateModified, it doesn't work either.

Error logs

No response

@markbj71
Copy link
Author

markbj71 commented Sep 1, 2023

OK, I found a way to make it working, in the search string, just add spaces both before and after the comma between the 2 labels, then the results are correct:
#year>0 orderby #year asc , #month desc

I don't see this kind of grammer in the wiki search example, it doesn't have space before the comma:
#author=Tolkien orderBy #publicationDate desc, note.title limit 10

So this still is a small bug?

image

@zadam
Copy link
Owner

zadam commented Sep 5, 2023

It is indeed a bug, thanks for reporting, fixed.

@zadam zadam closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants