logseq / logseq/logseq

Query sort by journal date with nlp-date would broken when clicking label for sort

Open
#7,210 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

:type/regression can-be-reproduced estimate: medium journals query-table table-v2
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

### What happened?

Let's say I have a [[Journal]] page I always use as a header in journal entries. If I do a query `{{query [[Journal]]}}` it will show the blocks in the order of journal dates. But if I switch Table view, then the order is completely random.

### Reproduce the Bug

1. Go to Journals

Add
```
- [[Journal]]
- my note
```
On multiple dates.

2. Go to some page and insert the query `{{query [[Journal]]}}`
3. turn on Table view

### Expected Behavior

I would expect the rows in the table to be in the same order as when shown as blocks, i.e sorted by appearance in journals by date. However the order in table mode is totally random.

### Screenshots

_No response_

### Desktop Platform Information

_No response_

### Mobile Platform Information

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the `{{query [[Journal]]}}` example with Journal blocks across multiple dates, then switch the results to Table view and trace how the table applies sorting. Done means Table view preserves the same journal-date appearance order as the block view.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.