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
sorting by last modified not working #172
Comments
Hey Feng. Just to confirm. Two notes with the exact same |
if two notes with exact same modified date, not only the order between themselves are random, the order between them and other notes seems also random. |
Could you please provide me with a small test case to reproduce this? I tried the following, and the sorting worked -
The sorted order was |
Can we sort notes by file date rather than the "last modfied" tag created in the YAML header? |
How does the app currently sort files with no metadata? It would be nice to be able to use the file modification date (or commit in which it was last modified) to sort. |
Right now, it uses the modified time on the filesystem. Could you please vote on #78 ? |
Sorting by "Last modified" doesn't seem to work when YAML headers are disabled in app version 1.68. Doesn't seem to be using filesystem timestamp. The only use case I can see for git timestamps is preserving "last modified date" on a fresh reinstall, which to my mind is a rare event. Edit: Some notes still have headers, even though they're not displayed. Regardless, the notes that don't have headers just stay put. They don't get reordered when changed. |
I'm not sure what to do about this issue. I can reproduce it at all :( If someone could provide a test case, that would really help. |
I see this happening for me too:
|
Same issue here - no YAML headers, sorting is alphabetical. I submitted a bug report through the app. |
This happens for me upon the first time I open the app to All Notes. Going to a different folder and then back fixes it. What I see:
|
@YodaEmbedding : Does changing the folder view type (grid/journal/card/normal) make a difference? |
Nope. I was using Standard view, FWIW. It also only seems to occur for Date Modified sort. Possibly related: only a small portion of notes are loaded initially. Switching to a different folder and then back fixes it as well. |
My original theory was that the notes are not fully loaded and even though the views are supposed to update themselves when the note has finished loading, that wasn't working. If changing the view doesn't fix it, then the problem is in another layer. For the "All Notes" screen GitJournal creates a "virtual folder" which combines the contents of all the folders. Maybe that layer isn't propagating the signals properly. I'm not sure how to proceed. If I could reproduce this, it would be trivial. |
Reproduction steps:
Actual result:
Expected result:
Directory structure: Available on https://github.com/YodaEmbedding/gitjournal-test, but for future-proofing, written below:
|
sorting by last modified seems not working, the actual order is changing every time i open the app or click one note then back to the all notes view.
lots of my notes have the same modified time in yaml header (manually edited when i first import from another app), maybe it's related to this issue.
The text was updated successfully, but these errors were encountered: