Here is a workaround:
- Put the following code in file
custom.js
(create inside folderlogseq
if missing):document.addEventListener('keyup', (e)=>{ if (e.altKey && e.key === "s") { const divJournals = document.querySelector("#journals") if (!divJournals) return const journals = divJournals.querySelectorAll("div.journal-item") const arr = Array.prototype.map.call(journals, (j)=>j ) arr.sort( (a, b)=>{ const aname = a.querySelector(".journal-title h1").textContent const bname = b.querySelector(".journal-title h1").textContent return aname.localeCompare(bname) }) divJournals.querySelector("div").prepend(...arr) } });
- Go to
Settings
→Editor
and set thePreferred date format
to:yyyy/mm/dd
- Press
Alt + s
to sort the loaded journals from top to bottom- Repeat when more journals are loaded
- That could be by scrolling, pressing
End
etc.
- That could be by scrolling, pressing
- Repeat when more journals are loaded